Core/Movement: MotionMaster & MovementGenerators cleaning

Port From (https://github.com/TrinityCore/TrinityCore/commit/14c6a4d8238e4f383557359436b5f73cb730d4ea)
This commit is contained in:
hondacrx
2020-05-07 14:16:30 -04:00
parent dff455da9d
commit c9a91fa62f
12 changed files with 631 additions and 669 deletions
+1 -4
View File
@@ -74,9 +74,6 @@ namespace Game.Movement
if (!_owner)
return;
if (_owner.HasUnitState(UnitState.Root | UnitState.Stunned))
return;
Cypher.Assert(!Empty());
_cleanFlag |= MMCleanFlag.Update;
@@ -263,7 +260,7 @@ namespace Game.Movement
MovePoint(id, pos.posX, pos.posY, pos.posZ, generatePath);
}
public void MovePoint(ulong id, float x, float y, float z, bool generatePath = true)
public void MovePoint(uint id, float x, float y, float z, bool generatePath = true)
{
if (_owner.IsTypeId(TypeId.Player))
StartMovement(new PointMovementGenerator<Player>(id, x, y, z, generatePath), MovementSlot.Active);