mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Core/Movement): Removed wrong code that blocked updating movement generators in case of root/stun. (#5061)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user