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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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