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

(cherry picked from commit 4e767f1c7cd0cae6316982e38be66f560baafea5)
This commit is contained in:
Treeston
2021-12-14 00:06:51 +01:00
committed by Shauren
parent 0d9a7f626d
commit 096269349c
+1 -1
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;