Spell Fizzle for < LDON expansions via lua_mod (#1118)

* [expansions] Create a Lua mod hook into Client::CheckFizzle()

* Added expansions_combat.lua mod stub

* Spell  Fizzle as per TAKP formula
This commit is contained in:
Ali Al-Khalifa
2020-10-25 03:49:43 +03:00
committed by GitHub
parent c1c010bc8d
commit e9d312fa86
8 changed files with 259 additions and 0 deletions
+9
View File
@@ -1377,4 +1377,13 @@ uint32 LuaParser::GetExperienceForKill(Client *self, Mob *against, bool &ignoreD
return retval;
}
bool LuaParser::CheckFizzle(Client *self, uint16 &spell_id, SPDat_Spell_Struct spell_struct, bool &ignoreDefault)
{
bool retValue = false;
for (auto &mod : mods_) {
mod.CheckFizzle(self, spell_id, spell_struct, retValue, ignoreDefault);
}
return retValue;
}
#endif