Skip to content

Commit

Permalink
Improved countermeasures for teleport skill exploits
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-dev committed Nov 3, 2024
1 parent 96e1125 commit 3728110
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ private boolean handleBogusPacket(Player player) {
* Sending a move packet with the current server-side position works around this client bug and the client will not move you to your target's
* position.
*/
sendPacket(type == 0 ? new SM_FORCED_MOVE(player, player) : new SM_MOVE(player));
boolean moveForcefully = type == 0 || (type & MovementMask.MANUAL) == MovementMask.MANUAL && (type & MovementMask.POSITION) == MovementMask.POSITION;
sendPacket(moveForcefully ? new SM_FORCED_MOVE(player, player) : new SM_MOVE(player));
return true;
}
return false;
Expand Down

0 comments on commit 3728110

Please sign in to comment.