SmartAI: Fixed a bug where creatures would clear movement flags when they shouldn't at SetCombatMove.
This commit is contained in:
1 parent
23e4472d14
commit
2b3ea2e181
1 file changed
+3
@@ -763,6 +763,9 @@ void SmartAI::SetCombatMove(bool on)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (me->HasUnitState(UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE))
|
||||
return;
|
||||
|
||||
me->GetMotionMaster()->MovementExpired();
|
||||
me->GetMotionMaster()->Clear(true);
|
||||
me->StopMoving();
|
||||
|
||||
Reference in new issue
Block a user