mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
fix (module) Reduce False hit for water walking
https://github.com/azerothcore/mod-anticheat/issues/70
This commit is contained in:
@@ -73,7 +73,7 @@ void AnticheatMgr::WalkOnWaterHackDetection(Player* player, MovementInfo moveme
|
|||||||
if (!distance2D)
|
if (!distance2D)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (player->GetLiquidData().Status == LIQUID_MAP_WATER_WALK)
|
if (player->GetLiquidData().Status == LIQUID_MAP_WATER_WALK && !player->IsFlying())
|
||||||
{
|
{
|
||||||
if (!m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_WATERWALKING) && !movementInfo.HasMovementFlag(MOVEMENTFLAG_WATERWALKING))
|
if (!m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_WATERWALKING) && !movementInfo.HasMovementFlag(MOVEMENTFLAG_WATERWALKING))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user