From 0dac3647d5da0b4f20eb372707daf352c3dd6699 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 3 Oct 2024 10:13:49 +0100 Subject: Fix Samizdat --- rules.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index e41e632..0025460 100644 --- a/rules.js +++ b/rules.js @@ -7296,11 +7296,13 @@ states.vm_samizdat = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - view.prompt = 'Samizdat: you may set aside a card from your hand and draw a replacement.' - for (let card of game.democrat_hand) { - gen_action_card(card) + if (game.samizdat_card !==0) { + view.prompt = 'Samizdat: you may set aside a card from your hand and draw a replacement.' + for (let card of game.democrat_hand) { + gen_action_card(card) + } + gen_action('pass') } - gen_action('pass') }, card(card) { push_undo() @@ -7323,22 +7325,23 @@ states.vm_samizdat_finish = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - if (game.phase === 2) { + /*if (game.phase ) { view.prompt = 'Samizdat: done.' gen_action('done') - } else { + } else {*/ view.prompt = 'Draw a replacement card.' gen_action('draw') - } + //} }, draw() { clear_undo() game.democrat_hand.push(draw_card(game.strategy_deck)) - game.phase ++ + vm_next() + //game.phase ++ }, - done() { + /*done() { vm_next() - } + }*/ } states.vm_shock_therapy = { -- cgit v1.2.3