Core/Scripts: fix a crash in Master's Call script
This commit is contained in:
@@ -240,9 +240,9 @@ namespace Scripts.Spells.Hunter
|
|||||||
|
|
||||||
SpellCastResult DoCheckCast()
|
SpellCastResult DoCheckCast()
|
||||||
{
|
{
|
||||||
Pet pet = GetCaster().ToPlayer().GetPet();
|
Guardian pet = GetCaster().ToPlayer().GetGuardianPet();
|
||||||
if (pet == null || !pet.IsAlive())
|
if (pet == null || !pet.IsPet() || !pet.IsAlive())
|
||||||
return SpellCastResult.CantDoThatRightNow;
|
return SpellCastResult.NoPet;
|
||||||
|
|
||||||
// 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
|
||||||
SpellCastResult result = SpellCastResult.SpellCastOk;
|
SpellCastResult result = SpellCastResult.SpellCastOk;
|
||||||
|
|||||||
Reference in New Issue
Block a user