fix(Scripts): Crashfix. (#5913)
This commit is contained in:
parent
b2ab5dba79
commit
6f4f0043c2
1 changed files with 2 additions and 4 deletions
|
|
@ -693,10 +693,8 @@ public:
|
|||
|
||||
SpellCastResult DoCheckCast()
|
||||
{
|
||||
Guardian* pet = GetCaster()->ToPlayer()->GetGuardianPet();
|
||||
ASSERT(pet); // checked in Spell::CheckCast
|
||||
|
||||
if (!pet->IsPet() || !pet->IsAlive())
|
||||
Pet* pet = GetCaster()->ToPlayer()->GetPet();
|
||||
if (!pet || !pet->IsAlive())
|
||||
return SPELL_FAILED_NO_PET;
|
||||
|
||||
// Do a mini Spell::CheckCasterAuras on the pet, no other way of doing this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue