*Fix broken escort AI.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-24 18:16:43 -05:00
parent 8140543de4
commit 6f2eebf2c3
3 changed files with 13 additions and 73 deletions
+1 -1
View File
@@ -10081,7 +10081,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
if(GetTypeId() != TYPEID_PLAYER)
{
if(GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_IDLE) != IDLE_MOTION_TYPE)
//if(GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_IDLE) != IDLE_MOTION_TYPE)
((Creature*)this)->SetHomePosition(GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
if(enemy)
{