aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-20 16:12:23 -0500
committermegamage <none@none>2009-08-20 16:12:23 -0500
commit2d4dac07113c6620b6fa8f6d8d0648cbb18ccdcd (patch)
tree8fe1835871ffbc3719c35b7be4029ebd6d26486c /src/game/CreatureAI.cpp
parent5f04f0c1f02ae3029ff9db47b242071774cb7c15 (diff)
*Try to fix the bug of mobs' chain aggro.
--HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r--src/game/CreatureAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp
index 165bb2411ec..e12baa137d5 100644
--- a/src/game/CreatureAI.cpp
+++ b/src/game/CreatureAI.cpp
@@ -112,7 +112,7 @@ void CreatureAI::MoveInLineOfSight(Unit *who)
else if(who->getVictim() && me->IsFriendlyTo(who)
&& me->IsWithinDistInMap(who, sWorld.getConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS))
&& me->canStartAttack(who->getVictim(), true))
- AttackStart(who->getVictim());
+ me->GetMotionMaster()->MoveChase(who->getVictim());
}
void CreatureAI::SelectNearestTarget(Unit *who)