diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-13 00:24:31 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:39 +0100 |
commit | cd3a2fc467cb8f4aefcf0190c519839f038d3372 (patch) | |
tree | 72bb56b4cb2640ced860223f1cbe64fc3308dbb3 /rules.js | |
parent | fbbacf3239641b48508c5ee29b01125eac024c13 (diff) | |
download | crusader-rex-cd3a2fc467cb8f4aefcf0190c519839f038d3372.tar.gz |
crusader: Fix P1/P2 determination with Intrigue event.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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(); |