Add mod hook for CommonOutgoingHitSuccess

This commit is contained in:
KimLS committed 2017-06-12 13:01:01 -07:00
1 parent b4837011ea
commit b29f70ad3f
6 files changed
+76 -3

No files matched your search

+7
View File
@@ -1333,6 +1333,13 @@ void LuaParser::TryCriticalHit(Mob *self, Mob *defender, DamageHitInfo &hit, Ext
}
}
void LuaParser::CommonOutgoingHitSuccess(Mob *self, Mob *other, DamageHitInfo &hit, ExtraAttackOptions *opts, bool &ignoreDefault)
{
for (auto &mod : mods_) {
mod.CommonOutgoingHitSuccess(self, other, hit, opts, ignoreDefault);
}
}
uint32 LuaParser::GetRequiredAAExperience(Client *self, bool &ignoreDefault)
{
uint32 retval = false;