diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-14 09:01:04 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-14 09:01:04 +0000 |
commit | b606a23ec27ae6e87e9b1995883319576f3f5230 (patch) | |
tree | 75bdc7fb54d0d442f397b351df6b39d78fdf8c91 | |
parent | fb35fd1f3c24d825b0b903c77fb7541c5b6cc2a9 (diff) | |
download | 1989-dawn-of-freedom-b606a23ec27ae6e87e9b1995883319576f3f5230.tar.gz |
Fix Ceausescu and TST Award interaction
-rw-r--r-- | rules.js | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -4563,10 +4563,11 @@ function vm_return() { delete game.vm_influence_added delete game.communist_hand_red game.vm_event = 0 + if (game.persistent_events.includes(C_AUSTRIA_HUNGARY_BORDER_REOPENED)) { reset_austria_hungary_border_reopened() } - if (game.is_pwr_struggle || game.state === 'vm_tst_6' || game.return_state === 'ceausescu_check') { + if (game.is_pwr_struggle || game.state === 'vm_tst_6' || game.state === 'vm_tst_3' || game.return_state === 'ceausescu_check') { vm_end_event() } else if ((is_auto_resolve(game.played_card) && game.played_card !== C_KISS_OF_DEATH ) && ((cards[game.played_card].side === 'C' && game.active === DEM) || @@ -8106,6 +8107,9 @@ states.vm_tst_3 = { for (let card of game.valid_cards) { gen_action_card(card) } + } else { + view.prompt = 'Discard cards: Done.' + gen_action('done') } }, card(card) { @@ -8113,11 +8117,11 @@ states.vm_tst_3 = { discard(card) game.valid_cards.splice(game.valid_cards.indexOf(card), 1) game.temp ++ - if (game.temp === 2) { - game.valid_cards = [] - vm_next() - } }, + done() { + game.valid_cards = [] + vm_next() + } } states.vm_tst_4 = { |