feat(Core/Scripting): Expand ModifyHealReceived() to also include hea… (#13655)

feat(Core/Scripting): Expand ModifyHealReceived() to also include healing over time
This commit is contained in:
Skjalf
2022-11-02 19:19:17 -03:00
committed by GitHub
parent 8e0b6aca1a
commit ab3548e2e4
4 changed files with 6 additions and 5 deletions

View File

@@ -6619,6 +6619,7 @@ void AuraEffect::HandlePeriodicHealAurasTick(Unit* target, Unit* caster) const
// Script Hook For HandlePeriodicDamageAurasTick -- Allow scripts to change the Damage pre class mitigation calculations
sScriptMgr->ModifyPeriodicDamageAurasTick(target, caster, heal);
sScriptMgr->ModifyHealReceived(target, caster, heal, GetSpellInfo());
HealInfo healInfo(caster, target, heal, GetSpellInfo(), GetSpellInfo()->GetSchoolMask());
Unit::CalcHealAbsorb(healInfo);