From e107f419567f17ccd0cc7f62230ac27840cc6e32 Mon Sep 17 00:00:00 2001 From: MDIC Date: Sat, 30 Jul 2022 11:08:01 -0400 Subject: [PATCH] fix (module): Make work flow happy again --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index e5bee99..ac3dbc8 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -454,7 +454,7 @@ void AnticheatMgr::IgnoreControlHackDetection(Player* player, MovementInfo movem uint32 latency = 0; latency = player->GetSession()->GetLatency() >= 400; - if (player->HasUnitState(UNIT_STATE_ROOT) || player->HasUnitState(UNIT_STATE_STUNNED) && !player->GetVehicle() && !latency) + if (player->HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED) && !player->GetVehicle() && !latency) { bool unrestricted = movementInfo.pos.GetPositionX() != x || movementInfo.pos.GetPositionY() != y; if (unrestricted)