fix(Core/Spells): resolve pet to owner in SummonGuardian (#25266)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
12a13ee4b1
commit
2eec7b229d
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue