From 2f06b63bf6a38f33161fbdb9513077c12e1e7cbc Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 1 Nov 2024 21:15:20 +0000 Subject: Fix Gorby after Breakaway Baltic republics --- rules.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 9d5fb0d..142002f 100644 --- a/rules.js +++ b/rules.js @@ -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 -- cgit v1.2.3