From 0dd6fa751f7df5cb3f55c34cca0578ce17927fa2 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 24 Aug 2009 11:38:49 -0500 Subject: *Fix the bug that sometimes assisting mobs just chase the attacker without attacking. --HG-- branch : trunk --- src/game/CreatureAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index a16cd09cc09..13889812e4c 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -112,7 +112,8 @@ void CreatureAI::MoveInLineOfSight(Unit *who) AttackStart(who); else if(who->getVictim() && me->IsFriendlyTo(who) && me->IsWithinDistInMap(who, sWorld.getConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS)) - && me->canStartAttack(who->getVictim(), true)) + //&& me->canStartAttack(who->getVictim(), true)) + && me->canStartAttack(who->getVictim(), false)) // TODO: if we use true, it will not attack it when it arrives me->GetMotionMaster()->MoveChase(who->getVictim()); } -- cgit v1.2.3