Core/Movement: followup

Port From (https://github.com/TrinityCore/TrinityCore/commit/06334ab734f25a31853a78936d534a11e2b56c0f)
This commit is contained in:
hondacrx
2022-02-22 13:33:40 -05:00
parent ccfec6a37f
commit 7d66fdbfd3
@@ -101,6 +101,14 @@ namespace Game.Movement
}
}
if (owner.HasUnitState(UnitState.FollowMove) && owner.MoveSpline.Finalized())
{
RemoveFlag(MovementGeneratorFlags.InformEnabled);
_path = null;
owner.ClearUnitState(UnitState.FollowMove);
DoMovementInform(owner, target);
}
if (_lastTargetPosition == null || _lastTargetPosition.GetExactDistSq(target.GetPosition()) > 0.0f)
{
_lastTargetPosition = new(target.GetPosition());