mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
fix (module): Change Climb Hack Calculation back
This commit is contained in:
@@ -424,7 +424,7 @@ void AnticheatMgr::ClimbHackDetection(Player* player, MovementInfo movementInfo,
|
||||
Position playerPos = player->GetPosition();
|
||||
|
||||
float deltaZ = fabs(playerPos.GetPositionZ() - movementInfo.pos.GetPositionZ());
|
||||
float deltaXY = movementInfo.pos.GetExactDist2d(m_Players[key].GetLastMovementInfo().pos);
|
||||
float deltaXY = movementInfo.pos.GetExactDist2d(&playerPos);
|
||||
|
||||
float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user