Core/Movement: Fix fleeing speed to 66% run speed

Port From (https://github.com/TrinityCore/TrinityCore/commit/2327ff4d6dab16cedb5e82c50f1cdcce8983abde)
This commit is contained in:
hondacrx
2022-01-05 23:24:23 -05:00
parent 20a31a52c2
commit 43d3298724
2 changed files with 2 additions and 2 deletions
@@ -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)
{
+1 -1
View File
@@ -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");