aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-27 13:54:57 -0500
committermegamage <none@none>2009-08-27 13:54:57 -0500
commitd91903e5b1b2ffac46fa8a0129e98ffcaaa95aa1 (patch)
tree4e0d2b8e7fa0bee1317ef322145b8add40aa4abd /src/game/CreatureAI.cpp
parent72c18a735408254aaf676208750a3c2073e49ea2 (diff)
*Fix the behavior of mob assistance.
--HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r--src/game/CreatureAI.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp
index 13889812e4c..20acf216c82 100644
--- a/src/game/CreatureAI.cpp
+++ b/src/game/CreatureAI.cpp
@@ -110,11 +110,10 @@ void CreatureAI::MoveInLineOfSight(Unit *who)
if(me->canStartAttack(who, false))
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(), false)) // TODO: if we use true, it will not attack it when it arrives
- me->GetMotionMaster()->MoveChase(who->getVictim());
+ //else if(who->getVictim() && me->IsFriendlyTo(who)
+ // && me->IsWithinDistInMap(who, sWorld.getConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS))
+ // && me->canStartAttack(who->getVictim(), true)) // TODO: if we use true, it will not attack it when it arrives
+ // me->GetMotionMaster()->MoveChase(who->getVictim());
}
void CreatureAI::SelectNearestTarget(Unit *who)