mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-11-02 18:53:44 +01:00
Fikser en bug der et tomt program i kortinnsamling skaper problemer
This commit is contained in:
@@ -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
|
//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());
|
lockedPlayerDeck.emptyInto(player.getProgrammingCardDeck());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user