From 51cfcf6adeb73b08d6e3ce518c37deffb5e729cd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 7 Jan 2022 13:24:20 +0100 Subject: Show both prior cards to make it clearer when double events cancel. --- rules.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 75f2329..d39cdff 100644 --- a/rules.js +++ b/rules.js @@ -1190,14 +1190,18 @@ function resume_play_card() { states.play_card = { prompt: function (view, current) { - if (current === OBSERVER) + if (current === OBSERVER) { + view.prior_s_card = game.prior_s_card; + view.prior_f_card = game.prior_f_card; return view.prompt = "Card Phase: Waiting for players to play a card."; + } if (current === FRANKS) { view.prior_s_card = game.prior_s_card; if (game.f_card) { view.prompt = "Card Phase: Waiting for Saracens to play a card."; gen_action(view, 'undo'); } else { + view.prior_f_card = game.prior_f_card; view.prompt = "Card Phase: Play a card."; for (let c of game.f_hand) if (game.turn > 1 || c !== INTRIGUE) @@ -1210,6 +1214,7 @@ states.play_card = { view.prompt = "Card Phase: Waiting for Franks to play a card."; gen_action(view, 'undo'); } else { + view.prior_s_card = game.prior_s_card; view.prompt = "Card Phase: Play a card."; for (let c of game.s_hand) if (game.turn > 1 || c !== INTRIGUE) -- cgit v1.2.3