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-01 21:15:20 +0000 |
commit | 2f06b63bf6a38f33161fbdb9513077c12e1e7cbc (patch) | |
tree | c58d1238c4fbf7ed7123d6c6eab4cfc094016b4a | |
parent | 8c35d6f14ca93044afa3ded1c687c8834eb20b69 (diff) | |
download | 1989-dawn-of-freedom-2f06b63bf6a38f33161fbdb9513077c12e1e7cbc.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 |