From 49c62fae606bcc8923cef913d8466466dc29091a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 Apr 2024 12:42:28 -0400 Subject: [PATCH] Debug string --- src/engine/net/client/handlers/AttackCmdMsgHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/AttackCmdMsgHandler.java b/src/engine/net/client/handlers/AttackCmdMsgHandler.java index d5d1a0bd..617a1c24 100644 --- a/src/engine/net/client/handlers/AttackCmdMsgHandler.java +++ b/src/engine/net/client/handlers/AttackCmdMsgHandler.java @@ -69,7 +69,8 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { 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"); return true; }