Browse Source

Attack early exit

combat-2
MagicBot 8 months ago
parent
commit
791e5cb9b8
  1. 2
      src/engine/net/client/handlers/AttackCmdMsgHandler.java

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

@ -68,7 +68,7 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
return true; // cannot attack a null target return true; // cannot attack a null target
} }
if (playerCharacter.getCombatTarget().equals(target)) if (playerCharacter.isCombat() && playerCharacter.getCombatTarget().equals(target))
return true; return true;
//set sources target //set sources target

Loading…
Cancel
Save