Rework OPCombatAbiltiy a bit

This is done to help remove some code duplication in the future
This commit is contained in:
Michael Cook (mackal) committed 2017-01-15 22:19:32 -05:00
1 parent 8c6fefa33e
commit b92d6c57a1
3 files changed
+106 -121

No files matched your search

+2 -1
View File
@@ -4622,7 +4622,8 @@ void Client::Handle_OP_CombatAbility(const EQApplicationPacket *app)
std::cout << "Wrong size on OP_CombatAbility. Got: " << app->size << ", Expected: " << sizeof(CombatAbility_Struct) << std::endl;
return;
}
OPCombatAbility(app);
auto ca_atk = (CombatAbility_Struct *)app->pBuffer;
OPCombatAbility(ca_atk);
return;
}