Core/Movement: Fix stunned falling units freezing the client

This commit is contained in:
Giacomo Pozzoni
2019-12-30 18:50:43 +01:00
committed by Ovahlord
parent e5a240cd7f
commit 42e0a6f1f7

View File

@@ -584,7 +584,7 @@ void MotionMaster::MoveFall(uint32 id /*=0*/)
return;
// rooted units don't move (also setting falling+root flag causes client freezes)
if (_owner->HasUnitState(UNIT_STATE_ROOT))
if (_owner->HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED))
return;
_owner->AddUnitMovementFlag(MOVEMENTFLAG_FALLING);