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
+2
View File
@@ -26,6 +26,7 @@ public:
void GetRequiredAAExperience(Client *self, uint32 &returnValue, bool &ignoreDefault);
void GetEXPForLevel(Client *self, uint16 level, uint32 &returnValue, bool &ignoreDefault);
void GetExperienceForKill(Client *self, Mob *against, uint32 &returnValue, bool &ignoreDefault);
void CheckFizzle(Client *self, uint16 &spell_id, SPDat_Spell_Struct spell_struct, bool &returnValue, bool &ignoreDefault);
private:
LuaParser *parser_;
lua_State *L;
@@ -40,4 +41,5 @@ private:
bool m_has_get_required_aa_experience;
bool m_has_get_exp_for_level;
bool m_has_get_experience_for_kill;
bool m_has_check_fizzle;
};