From ac7446fe1c2c047ee13b46b74c6e4a312967a33c Mon Sep 17 00:00:00 2001 From: blinkysc <37940565+blinkysc@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:03:50 -0600 Subject: [PATCH] fix(Core/Scripts): fix Pet Healing set bonus using heal info instead of damage info (#24768) Co-authored-by: blinkysc Co-authored-by: ariel- --- src/server/scripts/Spells/spell_item.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index e6dd1fcad..f2d237eda 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -5655,13 +5655,12 @@ class spell_item_pet_healing : public AuraScript void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) { PreventDefaultAction(); - HealInfo* healInfo = eventInfo.GetHealInfo(); - if (!healInfo || !healInfo->GetHeal()) + DamageInfo* damageInfo = eventInfo.GetDamageInfo(); + if (!damageInfo || !damageInfo->GetDamage()) return; - Unit* caster = eventInfo.GetActor(); - int32 bp0 = CalculatePct(static_cast(healInfo->GetHeal()), aurEff->GetAmount()); - caster->CastCustomSpell(SPELL_HEALTH_LINK, SPELLVALUE_BASE_POINT0, bp0, nullptr, true, nullptr, aurEff); + int32 bp0 = CalculatePct(static_cast(damageInfo->GetDamage()), aurEff->GetAmount()); + eventInfo.GetActor()->CastCustomSpell(SPELL_HEALTH_LINK, SPELLVALUE_BASE_POINT0, bp0, nullptr, true, nullptr, aurEff); } void Register() override