Core/Movement: Formation Rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/924116f0461f5e1e03a026129b81dfe23faa20e4)
This commit is contained in:
@@ -994,10 +994,10 @@ namespace Game.Movement
|
||||
Add(new RotateMovementGenerator(id, time, direction));
|
||||
}
|
||||
|
||||
public void MoveFormation(uint id, Position destination, WaypointMoveType moveType, bool forceRun = false, bool forceOrientation = false)
|
||||
public void MoveFormation(Unit leader, float range, float angle, uint point1, uint point2)
|
||||
{
|
||||
if (_owner.GetTypeId() == TypeId.Unit)
|
||||
Add(new FormationMovementGenerator(id, destination, moveType, forceRun, forceOrientation));
|
||||
if (_owner.GetTypeId() == TypeId.Unit && leader != null)
|
||||
Add(new FormationMovementGenerator(leader, range, angle, point1, point2), MovementSlot.Default);
|
||||
}
|
||||
|
||||
public void LaunchMoveSpline(MoveSplineInit init, uint id = 0, MovementGeneratorPriority priority = MovementGeneratorPriority.Normal, MovementGeneratorType type = MovementGeneratorType.Effect)
|
||||
|
||||
Reference in New Issue
Block a user