Clean up last commit
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -10617,7 +10617,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
|
|||||||
// Set home position at place of engaging combat for escorted creatures
|
// Set home position at place of engaging combat for escorted creatures
|
||||||
if(( IsAIEnabled && ((Creature*)this)->AI()->IsEscorted() ) ||
|
if(( IsAIEnabled && ((Creature*)this)->AI()->IsEscorted() ) ||
|
||||||
GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE ||
|
GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE ||
|
||||||
((Creature*)this)->GetMotionMaster()->GetCurrentMovementGeneratorType() == POINT_MOTION_TYPE)
|
GetMotionMaster()->GetCurrentMovementGeneratorType() == POINT_MOTION_TYPE)
|
||||||
((Creature*)this)->SetHomePosition(GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
|
((Creature*)this)->SetHomePosition(GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
|
||||||
|
|
||||||
if (enemy)
|
if (enemy)
|
||||||
|
|||||||
Reference in New Issue
Block a user