From 2861f1d686ad5759d74b1d7c65cb22bcde326302 Mon Sep 17 00:00:00 2001 From: MDIC Date: Fri, 8 Apr 2022 11:48:33 -0400 Subject: [PATCH] Revert "Update: False Hit Reduction." This reverts commit 3abb14713c15ec9956dfa1b380938addc61ecbcd. --- src/AnticheatMgr.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 9acd775..4c92c4e 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -478,17 +478,12 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo) // We check the last MovementInfo for the falling flag since falling down a hill and sliding a bit triggered a false positive if ((clientSpeedRate > speedRate * 1.25f) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING)) { - if (!player->CanTeleport()) + if (sConfigMgr->GetOption("Anticheat.WriteLog", true)) { - if (sConfigMgr->GetOption("Anticheat.WriteLog", true)) - { - LOG_INFO("module", "AnticheatMgr:: Speed-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString()); - } - - BuildReport(player, SPEED_HACK_REPORT); + LOG_INFO("module", "AnticheatMgr:: Speed-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString()); } - else if (player->CanTeleport()) - player->SetCanTeleport(false); + + BuildReport(player, SPEED_HACK_REPORT); } }