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) { switch(input) {
case "use": case "use":
System.out.println(use(scanner, engine)); System.out.println(use(scanner, engine));
break;
break COMBAT_LOOP;
case "runaway": case "runaway":
if(runawaySucceeds(getRunawayChance())) { if(runawaySucceeds(getRunawayChance())) {
combat = false; combat = false;

Loading…
Cancel
Save