summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 63ccaa3..3fc16d0 100644
--- a/rules.js
+++ b/rules.js
@@ -1570,7 +1570,7 @@ states.peek_fascist_cards = {
inactive: 'peek at Fascist cards',
prompt() {
gen_spend_hero_points();
- view.prompt = 'Return one card to the top of the Fascist deck.';
+ view.prompt = 'Return one Fascist card to the top of the Fascist deck and discard the others.';
view.fascist_cards = game.fascist_cards;
for (const c of game.fascist_cards) {
gen_action_card(c);
@@ -1580,6 +1580,7 @@ states.peek_fascist_cards = {
resolve_spend_hp();
},
card(c) {
+ log(">Peeked at top three Fascist cards, returned one, and discarded the others");
game.top_of_events_deck = c;
for (const ec of game.fascist_cards) {
if (ec !== c) {
@@ -3058,6 +3059,8 @@ function list_deck(id) {
return;
if (game.discard[id].includes(card))
return;
+ if (game.fascist_cards && game.fascist_cards.includes(card))
+ return;
}
else if (game.hands[id].includes(card) ||
game.discard[id].includes(card) ||