Skip to content

Commit

Permalink
fix (desktop): do not allow to close card during first round
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-ifsp committed Apr 2, 2023
1 parent 6797b80 commit 53f4d5f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -265,6 +265,7 @@ private void playCard(CardDto card, ImageView imageView) {
}

private void flipCardImage(CardDto card, ImageView currentCard) {
if (lastIntel.roundsPlayed() == 0) return;
if (!isClosed(currentCard)) currentCard.setImage(CardImage.ofClosedCard().getImage());
else currentCard.setImage(CardImage.of(card).getImage());
}
Expand Down

0 comments on commit 53f4d5f

Please sign in to comment.