Entities/Player: Fix an edge case where overlapping CCs could prevent player movement from being re-enabled. f6f1c48 follow-up.

(cherry picked from commit 4e767f1c7c)
This commit is contained in:
Treeston
2019-07-03 19:26:43 +02:00
committed by Shauren
parent 0d9a7f626d
commit 096269349c

View File

@@ -25762,7 +25762,7 @@ void Player::SetClientControl(Unit* target, bool allowMove)
}
// still affected by some aura that shouldn't allow control, only allow on last such aura to be removed
if (target->HasUnitState(UNIT_STATE_CONTROLLED))
if (target->HasUnitState(UNIT_STATE_FLEEING | UNIT_STATE_CONFUSED))
allowMove = false;
WorldPackets::Movement::ControlUpdate data;