From 20869a0aec735e14252a1bebea33d12c12f2a421 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 24 Feb 2014 02:31:40 -0500 Subject: [PATCH] Mobs will now face their target they are casting on Note: they do not switch their target, this is how live does it --- zone/spells.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index de9ff6336..6fd687c18 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -461,8 +461,9 @@ bool Mob::DoCastSpell(uint16 spell_id, uint16 target_id, uint16 slot, if (IsAIControlled()) { SetRunAnimSpeed(0); - if(this != pMob) - this->FaceTarget(pMob); + pMob = entity_list.GetMob(target_id); + if (pMob && this != pMob) + FaceTarget(pMob); } // if we got here we didn't fizzle, and are starting our cast