Skip to content
Snippets Groups Projects
Commit 569a5faa authored by Charlie Darques's avatar Charlie Darques
Browse files

Merge remote-tracking branch 'origin'

parents 22421606 466f1561
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,10 @@ class Main {
while (!attacksNames.contains(input.getInput())) {
if (!attacksNames.contains(input.getInput())){
System.out.println("WARNING ! : Choose an attack in the list");
input.setInput(in.nextLine());
}
}
String attack = attacksNames.get(attacksNames.indexOf(input.getInput()));
String attack = attacksNames.get(attacksNames.indexOf(input.getInput())).toUpperCase();
JoueurEnnemi.damage(Attack.valueOf(attack).getDamage());
System.out.println(JoueurEnnemi.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment