Skip to content

Commit

Permalink
Passive Anti-Cheat Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixDEV committed Mar 7, 2014
1 parent c3d3aaf commit 0981edd
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Wotlk(TrinityCore)/Passive Anti-cheat.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
#################################################################
#################################################################
#################################################################
##########Patch by: ?? #########
##########Fixed by: JunkyBulgaria and SymbolxiDEV #########
##########Cheat Type: SpeedHack #########
##########Cheat Type: FlyHack #########
##########Cheat Type: WalkOnWaterHack #########
#################################################################
#################################################################
#################################################################
/*
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp
--- a/src/server/game/Chat/Chat.cpp
+++ b/src/server/game/Chat/Chat.cpp
Expand Down Expand Up @@ -526,11 +539,11 @@ diff --git a/src/server/game/Server/Protocol/Handlers/MovementHandler.cpp b/src/

+
+ if (plMover &&
+ !plMover->isInFlight() &&
+ !plMover->IsInFlight() &&
+ !plMover->GetTransport() &&
+ !plMover->IsBeingTeleported() &&
+ plMover->CanFreeMove() &&
+ !plMover->isGameMaster())
+ !plMover->IsGameMaster())
+ {
+ // fly hack detection
+ // PosZ is checked to see if the player is going up when it should not.
Expand Down

0 comments on commit 0981edd

Please sign in to comment.