Core/SmartAI: allow more Unit::ResumeMovement calls on JustReachedHome()
Port From (https://github.com/TrinityCore/TrinityCore/commit/f1ef2f73a4da4cf466728903207e9d623800d70e)
This commit is contained in:
@@ -597,12 +597,10 @@ namespace Game.AI
|
||||
if (formation == null || formation.GetLeader() == me || !formation.IsFormed())
|
||||
{
|
||||
if (me.GetMotionMaster().GetCurrentMovementGeneratorType(MovementSlot.Default) != MovementGeneratorType.Waypoint)
|
||||
{
|
||||
if (me.GetWaypointPath() != 0)
|
||||
me.GetMotionMaster().MovePath(me.GetWaypointPath(), true);
|
||||
}
|
||||
else
|
||||
me.ResumeMovement();
|
||||
|
||||
me.ResumeMovement();
|
||||
}
|
||||
else if (formation.IsFormed())
|
||||
me.GetMotionMaster().MoveIdle(); // wait the order of leader
|
||||
|
||||
Reference in New Issue
Block a user