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

@@ -1305,7 +1305,7 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage* damageInfo, int32 dama
uint32 crTypeMask = victim->GetCreatureTypeMask();
// Script Hook For CalculateSpellDamageTaken -- Allow scripts to change the Damage post class mitigation calculations
sScriptMgr->ModifySpellDamageTaken(damageInfo->target, damageInfo->attacker, damage);
sScriptMgr->ModifySpellDamageTaken(damageInfo->target, damageInfo->attacker, damage, spellInfo);
int32 cleanDamage = 0;
if (Unit::IsDamageReducedByArmor(damageSchoolMask, spellInfo))