summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-13 00:24:31 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commitcd3a2fc467cb8f4aefcf0190c519839f038d3372 (patch)
tree72bb56b4cb2640ced860223f1cbe64fc3308dbb3 /rules.js
parentfbbacf3239641b48508c5ee29b01125eac024c13 (diff)
downloadcrusader-rex-cd3a2fc467cb8f4aefcf0190c519839f038d3372.tar.gz
crusader: Fix P1/P2 determination with Intrigue event.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index 7053557..633bdb6 100644
--- a/rules.js
+++ b/rules.js
@@ -1206,10 +1206,7 @@ function reveal_cards() {
log("Saracens play " + CARDS[game.s_card].name + ".");
game.show_cards = true;
- let fc = CARDS[game.f_card];
- let sc = CARDS[game.s_card];
-
- if (fc.event && sc.event) {
+ if (CARDS[game.f_card].event && CARDS[game.s_card].event) {
log("Game Turn is cancelled.");
game.prior_f_card = game.f_card;
game.prior_s_card = game.s_card;
@@ -1237,8 +1234,8 @@ function reveal_cards() {
game.prior_f_card = game.f_card;
game.prior_s_card = game.s_card;
- let fp = fc.event ? 10 : fc.moves;
- let sp = sc.event ? 10 : sc.moves;
+ let fp = CARDS[game.f_card].event ? 10 : CARDS[game.f_card].moves;
+ let sp = CARDS[game.s_card].event ? 10 : CARDS[game.s_card].moves;
if (fp === sp) {
let die = roll_d6();