update (module): addition ignore control check

Also check for ignore control hack for stun state as well now.
This commit is contained in:
MDIC
2022-07-30 11:00:11 -04:00
parent 8ff637a3a4
commit dad87f0e12

View File

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