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

@@ -11183,7 +11183,7 @@ void Unit::SendHealSpellLog(Unit* victim, uint32 SpellID, uint32 Damage, uint32
int32 Unit::HealBySpell(HealInfo& healInfo, bool critical)
{
uint32 heal = healInfo.GetHeal();
sScriptMgr->ModifyHealRecieved(this, healInfo.GetTarget(), heal);
sScriptMgr->ModifyHealReceived(this, healInfo.GetTarget(), heal, healInfo.GetSpellInfo());
healInfo.SetHeal(heal);
// calculate heal absorb and reduce healing