From a0bca3d8f2067d1149dc4c816a5e6c0621bad218 Mon Sep 17 00:00:00 2001 From: MDIC Date: Sat, 9 Apr 2022 12:26:57 -0400 Subject: [PATCH] Code Reduction No long need to make these two spell exceptions due to last commit. --- src/AnticheatMgr.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 95aee13..38c9d4b 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -454,23 +454,6 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo) if (!timeDiff) timeDiff = 1; - // Exceptions - switch (player->getClass()) - { - case CLASS_ROGUE: - // Killing Spree - if (player->GetAura(51690)) - return; - break; - case CLASS_MAGE: - // Blink - if (player->GetAura(1953)) - return; - break; - default: - break;// Should never happen - } - // this is the distance doable by the player in 1 sec, using the time done to move to this point. uint32 clientSpeedRate = distance2D * 1000 / timeDiff;