diff --git a/conf/Anticheat.conf.dist b/conf/Anticheat.conf.dist index f554a6a..254fb62 100644 --- a/conf/Anticheat.conf.dist +++ b/conf/Anticheat.conf.dist @@ -82,6 +82,7 @@ Anticheat.IgnoreControlHack = 1 Anticheat.DetectZaxisHack =1 Anticheat.AntiSwimHack = 1 Anticheat.DetectGravityHack = 1 +Anticheat.AntiKnockBack = 1 # Anticheat.StricterFlyHackCheck # Description: Checks moveflag ascending (may give false positives) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index e5961a8..8333876 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -693,6 +693,9 @@ void AnticheatMgr::AntiSwimHackDetection(Player* player, MovementInfo movementIn // basic detection void AnticheatMgr::AntiKnockBackHactDetection(Player* player, MovementInfo movementInfo) { + if (!sConfigMgr->GetOption("Anticheat.AntiKnockBack", true)) + return; + ObjectGuid key = player->GetGUID(); //if a knockback helper is not passed then we ignore