Core/SmartAI: Fixed issue where ranged caster would switch to combat ready state between cast.

This commit is contained in:
Malcrom committed 2013-12-12 16:39:30 -03:30
1 parent 3cee0b7dc7
commit 9d95351118
1 file changed
+1 -1
+1 -1
View File
@@ -618,7 +618,7 @@ void SmartAI::JustSummoned(Creature* creature)
void SmartAI::AttackStart(Unit* who)
{
if (who && me->Attack(who, true))
if (who && me->Attack(who, me->IsWithinMeleeRange(who)))
{
SetRun(mRun);
if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_ACTIVE) == POINT_MOTION_TYPE)