mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Code Reduction
No long need to make these two spell exceptions due to last commit.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user