update (module): Reformulated for false reductions

This commit is contained in:
MDIC
2022-05-09 09:35:48 -04:00
parent 3159498168
commit bb0d175b15

View File

@@ -158,15 +158,6 @@ void AnticheatMgr::TeleportPlaneHackDetection(Player* player, MovementInfo movem
if (!sConfigMgr->GetOption<bool>("Anticheat.DetectTelePlaneHack", true))
return;
if (player->GetAreaId())
{
switch (player->GetAreaId())
{
case 2100: //Maraudon https://github.com/azerothcore/azerothcore-wotlk/issues/2437
return;
}
}
ObjectGuid key = player->GetGUID();
if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP)
@@ -178,10 +169,9 @@ void AnticheatMgr::TeleportPlaneHackDetection(Player* player, MovementInfo movem
if (movementInfo.HasMovementFlag(MOVEMENTFLAG_FALLING | MOVEMENTFLAG_SWIMMING))
return;
float x, y, z;
player->GetPosition(x, y, z);
float ground_Z = player->GetMap()->GetHeight(x, y, z);
float z_diff = fabs(ground_Z - z);
float pos_z = player->GetPositionZ();
float ground_Z = player->GetFloorZ();
float z_diff = fabs(ground_Z - pos_z);
// we are not really walking there
if (z_diff > 1.0f)