From c5d4fe20a812f3b0fd0a23bb4cba4c9ffe8ed755 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Tue, 6 Apr 2021 14:24:34 +0200 Subject: [PATCH] fix(Core/Movement): Removed wrong code that blocked updating movement generators in case of root/stun. (#5061) --- src/server/game/Movement/MotionMaster.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 3aee9721e..3d038e927 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -97,17 +97,6 @@ void MotionMaster::UpdateMotion(uint32 diff) if (!_owner) return; - if (_owner->HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED)) // what about UNIT_STATE_DISTRACTED? Why is this not included? - { - // pussywizard: the same as at the bottom of this function - if (_owner->GetTypeId() == TYPEID_PLAYER) - _owner->UpdateUnderwaterState(_owner->GetMap(), _owner->GetPositionX(), _owner->GetPositionY(), _owner->GetPositionZ()); - else - _owner->UpdateEnvironmentIfNeeded(0); - - return; - } - ASSERT(!empty()); _cleanFlag |= MMCF_INUSE;