Do not remove item used to escape

This commit is contained in:
Arne Keller 2020-03-12 18:07:23 +01:00
parent 1388d78244
commit a738c23f5e

View File

@ -90,8 +90,7 @@ public class CardGame {
return "lose";
}
} else { // attempting to escape
// remove item used to escape
items.remove(items.size() - 1);
// do not remove item used to escape
if (roll >= minimumNeeded) {
endGame();
phase = Phase.WON;