Core/Movement: Fix fleeing speed to 66% run speed
Port From (https://github.com/TrinityCore/TrinityCore/commit/2327ff4d6dab16cedb5e82c50f1cdcce8983abde)
This commit is contained in:
@@ -185,7 +185,7 @@ namespace Game.Movement
|
||||
|
||||
public class AssistanceMovementGenerator : PointMovementGenerator<Creature>
|
||||
{
|
||||
public AssistanceMovementGenerator(uint id, float x, float y, float z) : base(id, x, y, z, true) { }
|
||||
public AssistanceMovementGenerator(uint id, float x, float y, float z, float speed = 0.0f) : base(id, x, y, z, true, speed) { }
|
||||
|
||||
public override void Finalize(Unit owner, bool active, bool movementInform)
|
||||
{
|
||||
|
||||
@@ -919,7 +919,7 @@ namespace Game.Movement
|
||||
_owner.AttackStop();
|
||||
_owner.CastStop();
|
||||
_owner.ToCreature().SetReactState(ReactStates.Passive);
|
||||
Add(new AssistanceMovementGenerator(EventId.AssistMove, x, y, z));
|
||||
Add(new AssistanceMovementGenerator(EventId.AssistMove, x, y, z, _owner.GetSpeed(UnitMoveType.Run) * 0.66f));
|
||||
}
|
||||
else
|
||||
Log.outError(LogFilter.Server, $"MotionMaster::MoveSeekAssistance: {_owner.GetGUID()}, attempted to seek assistance");
|
||||
|
||||
Reference in New Issue
Block a user