Browse Source

Debug string

combat-2
MagicBot 8 months ago
parent
commit
49c62fae60
  1. 3
      src/engine/net/client/handlers/AttackCmdMsgHandler.java

3
src/engine/net/client/handlers/AttackCmdMsgHandler.java

@ -69,7 +69,8 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
return true; // cannot attack a null target return true; // cannot attack a null target
} }
if (playerCharacter.isCombat() && playerCharacter.getCombatTarget().equals(target)) { if (playerCharacter.isCombat() && playerCharacter.getCombatTarget() != null &&
playerCharacter.getCombatTarget().equals(target)) {
Logger.info("Bypass"); Logger.info("Bypass");
return true; return true;
} }

Loading…
Cancel
Save