update (detection): Slight ignore control rewrite

This commit is contained in:
MDIC
2022-08-12 11:42:42 -04:00
parent cc6816378c
commit 5e8e5fc95a

View File

@@ -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)