mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Fikser en bug der et tomt program i kortinnsamling skaper problemer
This commit is contained in:
parent
ffceabd50c
commit
85100496bf
@ -329,7 +329,7 @@ public class RoboRallyGame implements DrawableGame, InteractableGame {
|
||||
}
|
||||
|
||||
//The player has no locked cards. All previously locked cards should go into the free deck
|
||||
if (robotDamage <= 4) {
|
||||
if (robotDamage <= 4 || playerProgram.size() == 0) {
|
||||
lockedPlayerDeck.emptyInto(player.getProgrammingCardDeck());
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user