mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[12675] Fix MoveGen's interrupting after last commit
Signed-off-by: Schmoozerd <schmoozerd@cmangos> (based on commit [12473] - baa6525)
This commit is contained in:
parent
394be2c5bf
commit
60a7bec73f
14 changed files with 32 additions and 18 deletions
|
|
@ -89,6 +89,7 @@ void WaypointMovementGenerator<Creature>::Finalize(Creature& creature)
|
|||
|
||||
void WaypointMovementGenerator<Creature>::Interrupt(Creature& creature)
|
||||
{
|
||||
creature.InterruptMoving();
|
||||
creature.clearUnitState(UNIT_STAT_ROAMING | UNIT_STAT_ROAMING_MOVE);
|
||||
creature.SetWalk(!creature.hasUnitState(UNIT_STAT_RUNNING_STATE), false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue