Core/SmartAI: allow more Unit::ResumeMovement calls on JustReachedHome()

Port From (https://github.com/TrinityCore/TrinityCore/commit/f1ef2f73a4da4cf466728903207e9d623800d70e)
This commit is contained in:
hondacrx
2022-01-01 16:11:41 -05:00
parent 61391aa446
commit c0aad82cd1
+2 -4
View File
@@ -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