mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Movement: Use correct root check
(cherry picked from commit 3e9239a1e5)
This commit is contained in:
@@ -945,7 +945,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->SetFall(true);
|
||||
|
||||
Reference in New Issue
Block a user