mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
False hit Reduction: Climb Hack
Climb Hack should only check if climbing not when falling.
This commit is contained in:
@@ -354,7 +354,7 @@ void AnticheatMgr::ClimbHackDetection(Player* player, MovementInfo movementInfo,
|
|||||||
|
|
||||||
float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY));
|
float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY));
|
||||||
|
|
||||||
if (angle > CLIMB_ANGLE)
|
if ((angle > CLIMB_ANGLE) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING))
|
||||||
{
|
{
|
||||||
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
|
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user