Core/Movement: followup
Port From (https://github.com/TrinityCore/TrinityCore/commit/06334ab734f25a31853a78936d534a11e2b56c0f)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user