mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
update (module): addition ignore control check
Also check for ignore control hack for stun state as well now.
This commit is contained in:
@@ -454,7 +454,7 @@ void AnticheatMgr::IgnoreControlHackDetection(Player* player, MovementInfo movem
|
|||||||
|
|
||||||
uint32 latency = 0;
|
uint32 latency = 0;
|
||||||
latency = player->GetSession()->GetLatency() >= 400;
|
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;
|
bool unrestricted = movementInfo.pos.GetPositionX() != x || movementInfo.pos.GetPositionY() != y;
|
||||||
if (unrestricted)
|
if (unrestricted)
|
||||||
|
|||||||
Reference in New Issue
Block a user