*Fix a bug that mobs do not return home after wipe.
--HG-- branch : trunk
This commit is contained in:
1 parent
3421942b2b
commit
abe53c5cb6
3 files changed
+12
-2
No files matched your search
+1
-1
@@ -9925,7 +9925,7 @@ void Unit::SetInCombatState(bool PvP)
|
||||
|
||||
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
|
||||
|
||||
if(GetTypeId() != TYPEID_PLAYER)
|
||||
if(GetTypeId() != TYPEID_PLAYER && GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_IDLE) != IDLE_MOTION_TYPE)
|
||||
((Creature*)this)->SetHomePosition(GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
|
||||
|
||||
if(GetTypeId() != TYPEID_PLAYER && ((Creature*)this)->isPet())
|
||||
|
||||
Reference in new issue
Block a user