From dad87f0e12889f22e248d0f209b79f48a98d7af3 Mon Sep 17 00:00:00 2001 From: MDIC Date: Sat, 30 Jul 2022 11:00:11 -0400 Subject: [PATCH] update (module): addition ignore control check Also check for ignore control hack for stun state as well now. --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index ce0aba1..e5bee99 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->GetVehicle() && !latency) + if (player->HasUnitState(UNIT_STATE_ROOT) || player->HasUnitState(UNIT_STATE_STUNNED) && !player->GetVehicle() && !latency) { bool unrestricted = movementInfo.pos.GetPositionX() != x || movementInfo.pos.GetPositionY() != y; if (unrestricted)