Browse Source

attack delay catching

combat-3
FatBoy-DOTC 6 months ago
parent
commit
d5809fc4b1
  1. 8
      src/engine/net/client/handlers/AttackCmdMsgHandler.java

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

@ -90,9 +90,9 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { @@ -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 { @@ -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);

Loading…
Cancel
Save