summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 12:49:49 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 12:49:49 +0100
commit066db0195cb566066354eab404e9bf1e7a29e62d (patch)
treec0847ea9af855274c44b809d13f9372bd8c3454d
parent86e93857a33d555829a6d958a2728d206d7a326b (diff)
download1989-dawn-of-freedom-066db0195cb566066354eab404e9bf1e7a29e62d.tar.gz
Fix for The Tyrant is Gone
-rw-r--r--rules.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 9965730..2b541da 100644
--- a/rules.js
+++ b/rules.js
@@ -1092,10 +1092,9 @@ states.raise_stakes_1 = {
if (game.raised_stakes_discard === 0) {
gen_action('pass')
}
- }
-
- for (let card of game.valid_cards) {
+ for (let card of game.valid_cards) {
gen_action_card(card)
+ }
}
},
card(card) {
@@ -1137,10 +1136,9 @@ states.raise_stakes_2 = {
if (game.raised_stakes_discard === 0) {
gen_action('pass')
}
- }
-
- for (let card of game.valid_cards) {
- gen_action_card(card)
+ for (let card of game.valid_cards) {
+ gen_action_card(card)
+ }
}
},
card(card) {
@@ -1535,6 +1533,7 @@ states.choose_power = {
//Check if The Tyrant is Gone occurs
if (game.table_cards.includes(97) && game.pwr_struggle_in === 'Romania' && game.persistent_events['the_crowd_turns_against_ceausescu']) {
+ game.return_state = 'finish_scoring'
game.state = 'the_tyrant_is_gone'
} else {
game.state = 'finish_scoring'