From 5e8e5fc95a1053783b65d5e4cc734bc7c6f4755c Mon Sep 17 00:00:00 2001 From: MDIC Date: Fri, 12 Aug 2022 11:42:42 -0400 Subject: [PATCH] update (detection): Slight ignore control rewrite --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 1bff633..d05a4ec 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -467,7 +467,7 @@ void AnticheatMgr::IgnoreControlHackDetection(Player* player, MovementInfo movem uint32 latency = 0; latency = player->GetSession()->GetLatency() >= 400; - if (player->HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED) && !player->GetVehicle() && !latency) + if ((player->HasAuraType(SPELL_AURA_MOD_STUN) || player->HasAuraType(SPELL_AURA_MOD_ROOT)) && !player->GetVehicle() && !latency) { bool unrestricted = newX != lastX || newY != lastY; if (unrestricted)