Browse Source

attack delay catching

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

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

@ -90,20 +90,20 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
if(!ajR.target.equals(target)){ if(!ajR.target.equals(target)){
playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.RHELD).cancelJob(); playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.RHELD).cancelJob();
addedDelay = ajR.getStopTime() - System.currentTimeMillis(); addedDelay = ajR.getStopTime() - System.currentTimeMillis();
}
}else{ }else{
return true; return true;
} }
}
if (playerCharacter.getTimers().containsKey("Attack" + mbEnums.EquipSlotType.LHELD)) { if (playerCharacter.getTimers().containsKey("Attack" + mbEnums.EquipSlotType.LHELD)) {
AttackJob ajL = ((AttackJob)playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.LHELD).getJob()); AttackJob ajL = ((AttackJob)playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.LHELD).getJob());
if(!ajL.target.equals(target)){ if(!ajL.target.equals(target)){
playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.LHELD).cancelJob(); playerCharacter.getTimers().get("Attack" + mbEnums.EquipSlotType.LHELD).cancelJob();
addedDelay = ajL.getStopTime() - System.currentTimeMillis(); addedDelay = ajL.getStopTime() - System.currentTimeMillis();
}
}else{ }else{
return true; return true;
} }
}
CombatManager.combatCycle(playerCharacter, target, addedDelay); CombatManager.combatCycle(playerCharacter, target, addedDelay);

Loading…
Cancel
Save