From 2e6f6e1fef5dbca3ee3813d40cc7967638057b90 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 11 Mar 2018 14:52:46 -0400 Subject: [PATCH] Core/Scripts: fix a crash in Master's Call script --- Source/Scripts/Spells/Hunter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Scripts/Spells/Hunter.cs b/Source/Scripts/Spells/Hunter.cs index cbeb2c2e5..c92ceeb98 100644 --- a/Source/Scripts/Spells/Hunter.cs +++ b/Source/Scripts/Spells/Hunter.cs @@ -240,9 +240,9 @@ namespace Scripts.Spells.Hunter SpellCastResult DoCheckCast() { - Pet pet = GetCaster().ToPlayer().GetPet(); - if (pet == null || !pet.IsAlive()) - return SpellCastResult.CantDoThatRightNow; + Guardian pet = GetCaster().ToPlayer().GetGuardianPet(); + if (pet == null || !pet.IsPet() || !pet.IsAlive()) + return SpellCastResult.NoPet; // Do a mini Spell::CheckCasterAuras on the pet, no other way of doing this SpellCastResult result = SpellCastResult.SpellCastOk;