fix(Core/Unit): Reduce mobs speed when low on health (#7932)
This commit is contained in:
parent
da42426783
commit
ea2c880fc8
3 changed files with 24 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue