*Fix broken escort AI.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-24 18:16:43 -05:00
1 parent 8140543de4
commit 6f2eebf2c3
3 files changed
+13 -73

No files matched your search

+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)
{