Fix fleeing speed to 66% run speed
Port From (https://github.com/TrinityCore/TrinityCore/commit/d095d4afe95125bba64312025528a2c4aab157e0)
This commit is contained in:
@@ -122,6 +122,10 @@ namespace Game.Movement
|
||||
moveFlagsForSpeed &= ~MovementFlag.Walking;
|
||||
|
||||
args.velocity = unit.GetSpeed(SelectSpeedType(moveFlagsForSpeed));
|
||||
Creature creature = unit.ToCreature();
|
||||
if (creature != null)
|
||||
if (creature.HasSearchedAssistance())
|
||||
args.velocity *= 0.66f;
|
||||
}
|
||||
|
||||
// limit the speed in the same way the client does
|
||||
|
||||
Reference in New Issue
Block a user