fix(Core/Scripts): fix Pet Healing set bonus using heal info instead of damage info (#24768)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-19 21:03:50 -06:00
committed by GitHub
parent 2203e4b0a9
commit ac7446fe1c
+4 -5
View File
@@ -5655,13 +5655,12 @@ class spell_item_pet_healing : public AuraScript
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
{ {
PreventDefaultAction(); PreventDefaultAction();
HealInfo* healInfo = eventInfo.GetHealInfo(); DamageInfo* damageInfo = eventInfo.GetDamageInfo();
if (!healInfo || !healInfo->GetHeal()) if (!damageInfo || !damageInfo->GetDamage())
return; return;
Unit* caster = eventInfo.GetActor(); int32 bp0 = CalculatePct(static_cast<int32>(damageInfo->GetDamage()), aurEff->GetAmount());
int32 bp0 = CalculatePct(static_cast<int32>(healInfo->GetHeal()), aurEff->GetAmount()); eventInfo.GetActor()->CastCustomSpell(SPELL_HEALTH_LINK, SPELLVALUE_BASE_POINT0, bp0, nullptr, true, nullptr, aurEff);
caster->CastCustomSpell(SPELL_HEALTH_LINK, SPELLVALUE_BASE_POINT0, bp0, nullptr, true, nullptr, aurEff);
} }
void Register() override void Register() override