summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-07 19:03:59 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-07 19:03:59 +0000
commit1b364f8186a92b28b8d44226f8451fc60a6a751b (patch)
tree01e1aa4ea5e7f3bc1a617029ee5831ab6f858adc /rules.js
parentcad77dfadbdfb5d764a0e53ceb9a4b2bdc39077b (diff)
download1989-dawn-of-freedom-1b364f8186a92b28b8d44226f8451fc60a6a751b.tar.gz
Fix Tyrant
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index ef25261..dbd1beb 100644
--- a/rules.js
+++ b/rules.js
@@ -627,8 +627,10 @@ states.play_card ={
game.return = game.active
game.vm_event = game.played_card
if (is_auto_resolve(game.played_card) || switch_events.includes(game.played_card)) {
+ console.log('resolved automatically')
goto_vm(game.vm_event)}
else {
+ console.log('resolved normally')
next_player()
log(`C${game.vm_event}`)
goto_vm(game.vm_event)
@@ -2972,7 +2974,7 @@ function is_auto_resolve(card) {
return true
}
}
- else if (ceausecu_events.includes(card) && game.persistent_events.includes(C_THE_TYRANT_IS_GONE)) {
+ else if (ceausecu_events.includes(card) && game.the_tyrant_is_gone > 0) {
return true
}
else if (card === C_KOHL_PROPOSES_REUNIFICATION && !game.persistent_events.includes(C_THE_WALL_MUST_GO)) {
@@ -4064,6 +4066,7 @@ function vm_return() {
delete game.vm_influence_added
delete game.communist_hand_red
+ console.log('in vm_return, game.active', game.active)
game.vm_event = 0 /*Reset to 0 now that event has been completed. Hopefully this doesn't cause issues! */
if (game.persistent_events.includes(C_AUSTRIA_HUNGARY_BORDER_REOPENED)) {
reset_austria_hungary_border_reopened()