mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Core/Unit): Reduce mobs speed when low on health (#7932)
This commit is contained in:
@@ -115,9 +115,6 @@ namespace Movement
|
||||
moveFlagsForSpeed &= ~MOVEMENTFLAG_WALKING;
|
||||
|
||||
args.velocity = unit->GetSpeed(SelectSpeedType(moveFlagsForSpeed));
|
||||
if (Creature* creature = unit->ToCreature())
|
||||
if (creature->HasSearchedAssistance())
|
||||
args.velocity *= 0.66f;
|
||||
}
|
||||
|
||||
// limit the speed in the same way the client does
|
||||
|
||||
Reference in New Issue
Block a user