summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-07 13:24:20 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commit51cfcf6adeb73b08d6e3ce518c37deffb5e729cd (patch)
treea2ac5dde953fe0fe4bf96b3e9bd991b89376f1e3
parentfed26ac0262efe7283462381f555441c4d953646 (diff)
downloadcrusader-rex-51cfcf6adeb73b08d6e3ce518c37deffb5e729cd.tar.gz
Show both prior cards to make it clearer when double events cancel.
-rw-r--r--rules.js7
1 files changed, 6 insertions, 1 deletions
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)