Merge pull request #15023 from robinsch/combatMovement
SmartAI: Incorrect removal of movement at SetCombatMove
This commit is contained in:
commit
a6f7bb029c
1 file changed
+3
@@ -763,6 +763,9 @@ void SmartAI::SetCombatMove(bool on)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (me->HasUnitState(UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE))
|
||||||
|
return;
|
||||||
|
|
||||||
me->GetMotionMaster()->MovementExpired();
|
me->GetMotionMaster()->MovementExpired();
|
||||||
me->GetMotionMaster()->Clear(true);
|
me->GetMotionMaster()->Clear(true);
|
||||||
me->StopMoving();
|
me->StopMoving();
|
||||||
|
|||||||
Reference in new issue
Block a user