fix(Core/Spells): resolve pet to owner in SummonGuardian (#25266)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-03-27 11:45:54 -05:00
committed by GitHub
parent 12a13ee4b1
commit 2eec7b229d

View File

@@ -5943,6 +5943,9 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const*
if (caster->IsTotem()) if (caster->IsTotem())
caster = caster->ToTotem()->GetOwner(); caster = caster->ToTotem()->GetOwner();
else if (caster->IsPet())
if (Unit* owner = caster->GetOwner())
caster = owner;
// in another case summon new // in another case summon new
uint8 summonLevel = caster->GetLevel(); uint8 summonLevel = caster->GetLevel();