aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.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/MotionMaster.cpp
parent65b10830b84646848221833f93aded68fc78e974 (diff)
*Move MoveFollow owner from MoveTargetedHome to enterevademode.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r--src/game/MotionMaster.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index b31d3231a3b..52b9ba56e3e 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -203,14 +203,7 @@ MotionMaster::MoveTargetedHome()
Clear(false);
- if(Unit *target = i_owner->GetCharmerOrOwner())
- {
- DEBUG_LOG("Pet or controlled unit (Entry: %u GUID: %u) targeting home",
- i_owner->GetEntry(), i_owner->GetGUIDLow() );
-
- MoveFollow(target, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE, MOTION_SLOT_IDLE);
- }
- else if(i_owner->GetTypeId() == TYPEID_UNIT)
+ if(i_owner->GetTypeId() == TYPEID_UNIT)
{
DEBUG_LOG("Creature (Entry: %u GUID: %u) targeted home", i_owner->GetEntry(), i_owner->GetGUIDLow());
Mutate(new HomeMovementGenerator<Creature>(), MOTION_SLOT_ACTIVE);
@@ -218,7 +211,6 @@ MotionMaster::MoveTargetedHome()
else
{
sLog.outError("Player (GUID: %u) attempt targeted home", i_owner->GetGUIDLow() );
- return;
}
}