From 1b364f8186a92b28b8d44226f8451fc60a6a751b Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 7 Nov 2024 19:03:59 +0000 Subject: Fix Tyrant --- rules.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rules.js') 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() -- cgit v1.2.3