mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +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
|
|
@ -210,6 +210,7 @@ void ChaseMovementGenerator<T>::Finalize(T& owner)
|
|||
template<class T>
|
||||
void ChaseMovementGenerator<T>::Interrupt(T& owner)
|
||||
{
|
||||
owner.InterruptMoving();
|
||||
owner.clearUnitState(UNIT_STAT_CHASE | UNIT_STAT_CHASE_MOVE);
|
||||
}
|
||||
|
||||
|
|
@ -281,6 +282,7 @@ void FollowMovementGenerator<T>::Finalize(T& owner)
|
|||
template<class T>
|
||||
void FollowMovementGenerator<T>::Interrupt(T& owner)
|
||||
{
|
||||
owner.InterruptMoving();
|
||||
owner.clearUnitState(UNIT_STAT_FOLLOW | UNIT_STAT_FOLLOW_MOVE);
|
||||
_updateSpeed(owner);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue