Fix fleeing speed to 66% run speed

Port From (https://github.com/TrinityCore/TrinityCore/commit/d095d4afe95125bba64312025528a2c4aab157e0)
This commit is contained in:
hondacrx
2022-01-05 23:51:18 -05:00
parent acfe9946c6
commit 654c9743e3
7 changed files with 17 additions and 26 deletions
+4
View File
@@ -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