summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-30 16:29:26 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-30 16:29:26 +0000
commit7b56c444ed12ec421286ddb754576c6cbe6354c5 (patch)
treec3b932c44468dbabdb46ab29136daa22bac27b21 /rules.js
parent5b60f50ce0b3dcfe7cafc9ba4ae550a402777a36 (diff)
download1989-dawn-of-freedom-7b56c444ed12ec421286ddb754576c6cbe6354c5.tar.gz
Fix CEH for Communist
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js16
1 files 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
+ }
}
}