mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[9435] Avoid useless creature running around at evade
* If creature near respawn point and by defult do random movement then restart from current point * If creature have default waypoints movegen restart from last updated point. Not reload waypoints
This commit is contained in:
parent
f47f5a1deb
commit
d3fc17a81d
7 changed files with 41 additions and 12 deletions
|
|
@ -94,7 +94,6 @@ void WaypointMovementGenerator<Creature>::Interrupt( Creature &u )
|
|||
|
||||
void WaypointMovementGenerator<Creature>::Reset( Creature &u )
|
||||
{
|
||||
ReloadPath(u);
|
||||
b_StoppedByPlayer = false;
|
||||
i_nextMoveTime.Reset(0);
|
||||
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue