Skip to content

Commit

Permalink
进一步优化例外标记
Browse files Browse the repository at this point in the history
  • Loading branch information
kissingers committed Aug 25, 2024
1 parent 7ad5166 commit d1599db
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/AnticheatMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,20 +451,9 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
}
}

if (player->HasAura(111)) //配合其他LUA或者模块,在传送时候给玩家一个光环ID 111 用来作为有效传送标记
if (player->HasAura(111) || player->HasAura(8326)) //配合其他LUA或者模块,在有光环ID 111作为传送等例外情况,另外有死亡光环也例外
return;

if (player->isDead())
{
switch (player->GetMapId())
{
case 30: // 战场;奥特兰山脉战场
case 489: // 战场;阿拉希盆地
case 529: // 战场;阿拉希盆地
return;
}
}

float distance2D = movementInfo.pos.GetExactDist2d(&m_Players[key].GetLastMovementInfo().pos);

// We don't need to check for a speedhack if the player hasn't moved
Expand Down

0 comments on commit d1599db

Please sign in to comment.