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