From d5809fc4b1436404b26fafe0e768d613c676bae6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 3 Jun 2024 21:49:01 -0500 Subject: [PATCH] attack delay catching --- src/engine/net/client/handlers/AttackCmdMsgHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/net/client/handlers/AttackCmdMsgHandler.java b/src/engine/net/client/handlers/AttackCmdMsgHandler.java index fb503532..2566fa8d 100644 --- a/src/engine/net/client/handlers/AttackCmdMsgHandler.java +++ b/src/engine/net/client/handlers/AttackCmdMsgHandler.java @@ -90,9 +90,9 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { if(!ajR.target.equals(target)){ playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.RHELD).cancelJob(); addedDelay = ajR.getStopTime() - System.currentTimeMillis(); + }else{ + return true; } - }else{ - return true; } if (playerCharacter.getTimers().containsKey("Attack" + mbEnums.EquipSlotType.LHELD)) { @@ -100,9 +100,9 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { if(!ajL.target.equals(target)){ playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.LHELD).cancelJob(); addedDelay = ajL.getStopTime() - System.currentTimeMillis(); + }else{ + return true; } - }else{ - return true; } CombatManager.combatCycle(playerCharacter, target, addedDelay);