From 7b56c444ed12ec421286ddb754576c6cbe6354c5 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 30 Nov 2024 16:29:26 +0000 Subject: Fix CEH for Communist --- rules.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/rules.js b/rules.js index 4a28647..03a6d82 100644 --- a/rules.js +++ b/rules.js @@ -3405,13 +3405,19 @@ function event_is_playable(card) { if (card === C_REFORMER_REHABILITATED) { return false } - // Check for Common European Home under Stasi - else if (card === C_COMMON_EUROPEAN_HOME && game.active === DEM) { - if (game.stasi_card === C_COMMON_EUROPEAN_HOME) { - return false + // Check for Common European Home + else if (card === C_COMMON_EUROPEAN_HOME) { + if (game.active === DEM) { + if (game.stasi_card === C_COMMON_EUROPEAN_HOME) { + return false + } else { + if (ceh_card_check().length > 0) + return true + } } else { - if (ceh_card_check().length > 0) + if (ceh_card_check().length > 0) { return true + } } } -- cgit v1.2.3