Browse Source

refactoring: Fixed use command not jumping out of COMBAT_LOOP

remotes/origin/fight-engine
fdai7430 2 years ago
parent
commit
9ed2f1a825
  1. 2
      src/main/java/org/bitbiome/commands/UseCommand.java

2
src/main/java/org/bitbiome/commands/UseCommand.java

@ -37,7 +37,7 @@ private boolean combat = false;
switch(input) {
case "use":
System.out.println(use(scanner, engine));
break;
break COMBAT_LOOP;
case "runaway":
if(runawaySucceeds(getRunawayChance())) {
combat = false;

Loading…
Cancel
Save