[Lua Mod] Fix issue with SetAAEXP and SetEXP firing when uninitialized (#4345)

This commit is contained in:
Chris Miles 2024-05-26 14:20:07 -05:00 committed by GitHub
parent 421857026d
commit b253fce0d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,8 @@ void LuaMod::Init()
m_has_common_damage = parser_->HasFunction("CommonDamage", package_name_);
m_has_heal_damage = parser_->HasFunction("HealDamage", package_name_);
m_has_is_immune_to_spell = parser_->HasFunction("IsImmuneToSpell", package_name_);
m_has_set_aa_exp = parser_->HasFunction("SetAAEXP", package_name_);
m_has_set_exp = parser_->HasFunction("SetEXP", package_name_);
}
void PutDamageHitInfo(lua_State *L, luabind::adl::object &e, DamageHitInfo &hit) {