SmartAI: Fixed a bug where creatures would clear movement flags when they shouldn't at SetCombatMove.

This commit is contained in:
robinsch committed 2015-07-07 10:32:49 +02:00
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();