aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureEventAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-12 10:11:54 -0500
committermegamage <none@none>2009-05-12 10:11:54 -0500
commitdf4e8b456becd90ca839b8f64fbe326042aaabd9 (patch)
tree676179af072e6e837a3faff7ef1719158cc54ec6 /src/game/CreatureEventAI.cpp
parent65b10830b84646848221833f93aded68fc78e974 (diff)
*Move MoveFollow owner from MoveTargetedHome to enterevademode.
--HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r--src/game/CreatureEventAI.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp
index fb7b7119860..470225e0da0 100644
--- a/src/game/CreatureEventAI.cpp
+++ b/src/game/CreatureEventAI.cpp
@@ -1054,14 +1054,7 @@ void CreatureEventAI::JustReachedHome()
void CreatureEventAI::EnterEvadeMode()
{
- m_creature->RemoveAllAuras();
- m_creature->DeleteThreatList();
- m_creature->CombatStop(true);
-
- if (m_creature->isAlive())
- m_creature->GetMotionMaster()->MoveTargetedHome();
-
- m_creature->SetLootRecipient(NULL);
+ CreatureAI::EnterEvadeMode();
if (bEmptyList)
return;