mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts): Crashfix. (#5913)
This commit is contained in:
@@ -693,10 +693,8 @@ public:
|
|||||||
|
|
||||||
SpellCastResult DoCheckCast()
|
SpellCastResult DoCheckCast()
|
||||||
{
|
{
|
||||||
Guardian* pet = GetCaster()->ToPlayer()->GetGuardianPet();
|
Pet* pet = GetCaster()->ToPlayer()->GetPet();
|
||||||
ASSERT(pet); // checked in Spell::CheckCast
|
if (!pet || !pet->IsAlive())
|
||||||
|
|
||||||
if (!pet->IsPet() || !pet->IsAlive())
|
|
||||||
return SPELL_FAILED_NO_PET;
|
return SPELL_FAILED_NO_PET;
|
||||||
|
|
||||||
// Do a mini Spell::CheckCasterAuras on the pet, no other way of doing this
|
// Do a mini Spell::CheckCasterAuras on the pet, no other way of doing this
|
||||||
|
|||||||
Reference in New Issue
Block a user