summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js5
-rw-r--r--rules.ts4
2 files changed, 7 insertions, 2 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) ||
diff --git a/rules.ts b/rules.ts
index 971113c..73a2168 100644
--- a/rules.ts
+++ b/rules.ts
@@ -1907,7 +1907,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);
@@ -1917,6 +1917,7 @@ states.peek_fascist_cards = {
resolve_spend_hp();
},
card(c: CardId) {
+ 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) {
@@ -3790,6 +3791,7 @@ function list_deck(id: FactionId | FascistId) {
if (id === FASCIST_ID) {
if (game.current_events.includes(card)) 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) ||