summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.ts b/rules.ts
index 52f6bea..32824b6 100644
--- a/rules.ts
+++ b/rules.ts
@@ -922,9 +922,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');
}
},