summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 2ca6b70..1ccc8a3 100644
--- a/rules.js
+++ b/rules.js
@@ -680,9 +680,10 @@ states.add_card_to_tableau = {
view.prompt = 'Add a card to your tableau.';
const faction = get_active_faction();
for (const c of game.hands[faction]) {
- gen_action_card(c);
+ if (!game.selected_cards[faction].includes(c))
+ gen_action_card(c);
}
- if (game.hands[faction].length === 0) {
+ if (game.hands[faction].length === game.selected_cards[faction].length) {
gen_action('skip');
}
},