From be8967b05f103afa61c73dd2f5f560b5fdd9e0a0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 10 Sep 2023 13:28:46 -0500 Subject: [PATCH] null set for target --- 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 3c137631..5a2fc6ca 100644 --- a/src/engine/net/client/handlers/AttackCmdMsgHandler.java +++ b/src/engine/net/client/handlers/AttackCmdMsgHandler.java @@ -64,7 +64,7 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { } if(target == null) { - playerCharacter.setCombatTarget(target); + playerCharacter.setCombatTarget(null); return true; // cannot attack a null target } //set sources target