diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-01 21:15:20 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-02 08:22:06 +0000 |
commit | dca4c68dd6987769fa98a0425a389eac336df434 (patch) | |
tree | 90a6fefdf32074e8b117919f719b8d7ef48139a0 | |
parent | dc3d2c0e71f8b024cc80416fe029aa1d73222d58 (diff) | |
download | 1989-dawn-of-freedom-dca4c68dd6987769fa98a0425a389eac336df434.tar.gz |
Fix Gorby after Breakaway Baltic republics
-rw-r--r-- | rules.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -585,6 +585,7 @@ states.play_card ={ return `play ${clean_name(cards[game.played_card].name)}.` }, prompt () { + console.log('game.playable_cards', game.playable_cards) view.prompt = `Play ${clean_name(cards[game.played_card].name)} for:` if (scoring_cards.includes(game.played_card)) { @@ -3032,7 +3033,7 @@ function event_is_playable(card) { if (card === C_REFORMER_REHABILITATED) { return false } - //Check for Common European Hmme under Stasi + //Check for Common European Home under Stasi else if (game.stasi_card === C_COMMON_EUROPEAN_HOME && card === C_COMMON_EUROPEAN_HOME && game.active === DEM) { return false } @@ -3040,6 +3041,11 @@ function event_is_playable(card) { else if (game.com_tst_position === 8 && card === C_THE_CHINESE_SOLUTION) { return true } + + //Check for Gorbachev Charms the West after Breakaway Baltic Republics + else if (card === C_GORBACHEV_CHARMS_THE_WEST && !game.playable_cards.includes(C_GORBACHEV_CHARMS_THE_WEST)) { + return false + } //Then check normally else if (cards[card].playable) { return true |