diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-30 16:29:26 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-30 16:29:26 +0000 |
commit | 7b56c444ed12ec421286ddb754576c6cbe6354c5 (patch) | |
tree | c3b932c44468dbabdb46ab29136daa22bac27b21 /rules.js | |
parent | 5b60f50ce0b3dcfe7cafc9ba4ae550a402777a36 (diff) | |
download | 1989-dawn-of-freedom-7b56c444ed12ec421286ddb754576c6cbe6354c5.tar.gz |
Fix CEH for Communist
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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 + } } } |