From 791e5cb9b80c03fee92b849235868d5e90322b95 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 Apr 2024 12:36:36 -0400 Subject: [PATCH] Attack early exit --- src/engine/net/client/handlers/AttackCmdMsgHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/AttackCmdMsgHandler.java b/src/engine/net/client/handlers/AttackCmdMsgHandler.java index a7a538a7..7676ee6e 100644 --- a/src/engine/net/client/handlers/AttackCmdMsgHandler.java +++ b/src/engine/net/client/handlers/AttackCmdMsgHandler.java @@ -68,7 +68,7 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { return true; // cannot attack a null target } - if (playerCharacter.getCombatTarget().equals(target)) + if (playerCharacter.isCombat() && playerCharacter.getCombatTarget().equals(target)) return true; //set sources target