Core/Movement: waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/97585597f0b1aff93873fe4d757556731bc0c1b2)
This commit is contained in:
@@ -68,8 +68,7 @@ namespace Game.Movement
|
||||
// Call for creature group update
|
||||
Creature creature = owner.ToCreature();
|
||||
if (creature != null)
|
||||
if (creature.GetFormation() != null && creature.GetFormation().GetLeader() == creature)
|
||||
creature.GetFormation().LeaderMoveTo(_destination, _movementId);
|
||||
creature.SignalFormationMovement(_destination, _movementId);
|
||||
}
|
||||
|
||||
public override void DoReset(T owner)
|
||||
@@ -109,8 +108,7 @@ namespace Game.Movement
|
||||
// Call for creature group update
|
||||
Creature creature = owner.ToCreature();
|
||||
if (creature != null)
|
||||
if (creature.GetFormation() != null && creature.GetFormation().GetLeader() == creature)
|
||||
creature.GetFormation().LeaderMoveTo(_destination, _movementId);
|
||||
creature.SignalFormationMovement(_destination, _movementId);
|
||||
}
|
||||
|
||||
return !owner.MoveSpline.Finalized();
|
||||
|
||||
Reference in New Issue
Block a user