diff options
author | megamage <none@none> | 2009-08-24 11:38:49 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-24 11:38:49 -0500 |
commit | 0dd6fa751f7df5cb3f55c34cca0578ce17927fa2 (patch) | |
tree | 0e3f92f4c79d2b5f670e2f69a2cc99c88b082142 /src | |
parent | bcc23fac927ea170bfe31767b7a5a2a0614835c8 (diff) |
*Fix the bug that sometimes assisting mobs just chase the attacker without attacking.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/CreatureAI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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()); } |