From 93b35702348531a1cad68dd0b426cae84fb24975 Mon Sep 17 00:00:00 2001 From: MDIC Date: Sat, 9 Apr 2022 12:04:01 -0400 Subject: [PATCH] False Hit Reduction: Speed Hack False Speed Hack flag reduction for transporters such as undercity and silvermoon translocators and using flight managers are now fixed. Current Speed Hack detections and Teleport Hacks Detections are working as intended with no issues with false hit reports as of current. --- src/AnticheatMgr.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 4c92c4e..95aee13 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -478,12 +478,15 @@ 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 (sConfigMgr->GetOption("Anticheat.WriteLog", true)) + if (!player->CanTeleport()) { - LOG_INFO("module", "AnticheatMgr:: Speed-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString()); + if (sConfigMgr->GetOption("Anticheat.WriteLog", true)) + { + LOG_INFO("module", "AnticheatMgr:: Speed-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString()); + } + BuildReport(player, SPEED_HACK_REPORT); } - - BuildReport(player, SPEED_HACK_REPORT); + return; } }