Core/Movement: Use correct root check

This commit is contained in:
Shauren
2019-05-10 23:32:57 +02:00
parent 99a9129a72
commit 3e9239a1e5

View File

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