Fix False Flag (Killing Spree)

Rogue's Kill Spree was giving a false detection on speed hack when on a single target. We add the aura and class combination as a exception to not flag legit rouge players.
This commit is contained in:
MDIC
2022-03-09 09:29:46 -05:00
parent 2461ffa1a0
commit 75532a21e6

View File

@@ -413,6 +413,12 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
if (!timeDiff)
timeDiff = 1;
// Rouge Class Killing Spree causes false flags so we add the exception here
if (player->getClass() == CLASS_ROGUE && player->GetAura(51690))
{
return;
}
// 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;