Core/Movement: Prevent rooted units from falling

* Fixes a client freeze

Closes #23042

(cherry picked from commit 99a9129a72)
This commit is contained in:
Shauren
2019-05-10 23:30:50 +02:00
parent ab988dc982
commit 34eedc2ad8

View File

@@ -944,6 +944,10 @@ void MotionMaster::MoveFall(uint32 id/* = 0*/)
if (std::fabs(_owner->GetPositionZ() - tz) < 0.1f)
return;
// rooted units don't move (also setting falling+root flag causes client freezes)
if (_owner->IsRooted())
return;
_owner->SetFall(true);
// Don't run spline movement for players