fix(Core/Spells): resolve pet to owner in SummonGuardian (#25266)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user