mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Movement: Prevent rooted units from falling
* Fixes a client freeze
Closes #23042
(cherry picked from commit 99a9129a72)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user