Core/Scripts: Add SpellInfo argument to ScriptMgr::ModifySpellDamageTaken

Port From (https://github.com/TrinityCore/TrinityCore/commit/995fb23bc11e5dff3f21e1afa977934b76482d1b)
This commit is contained in:
hondacrx
2021-03-04 14:13:48 -05:00
parent 7b5f4e610c
commit b04f34a1e1
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -2475,7 +2475,7 @@ namespace Game.Entities
}
// Script Hook For CalculateSpellDamageTaken -- Allow scripts to change the Damage post class mitigation calculations
Global.ScriptMgr.ModifySpellDamageTaken(damageInfo.target, damageInfo.attacker, ref damage);
Global.ScriptMgr.ModifySpellDamageTaken(damageInfo.target, damageInfo.attacker, ref damage, spellInfo);
// Calculate absorb resist
if (damage < 0)