feat(Core/Scripting): Expand ModifySpellDamageTaken() to include the … (#13707)

feat(Core/Scripting): Expand ModifySpellDamageTaken() to include the spell data
This commit is contained in:
Skjalf
2022-11-05 12:39:58 -03:00
committed by GitHub
parent 20cf69c86c
commit 8b7fb759c2
3 changed files with 5 additions and 5 deletions

View File

@@ -69,11 +69,11 @@ void ScriptMgr::ModifyMeleeDamage(Unit* target, Unit* attacker, uint32& damage)
});
}
void ScriptMgr::ModifySpellDamageTaken(Unit* target, Unit* attacker, int32& damage)
void ScriptMgr::ModifySpellDamageTaken(Unit* target, Unit* attacker, int32& damage, SpellInfo const* spellInfo)
{
ExecuteScript<UnitScript>([&](UnitScript* script)
{
script->ModifySpellDamageTaken(target, attacker, damage);
script->ModifySpellDamageTaken(target, attacker, damage, spellInfo);
});
}