summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index ac40f5b..d3c4dd6 100644
--- a/rules.js
+++ b/rules.js
@@ -3087,6 +3087,18 @@ function is_auto_resolve(card) {
if (!game.state.startsWith('vm')) { logi('Democrat has no cards to set aside') }
return true
}
+ } else if (card === C_SPITZEL) {
+ let dem_germany_infl = spaces.filter(space => space.country === 'East_Germany' && game.demInfl[space.space_id] > 0).length
+ if (dem_germany_infl === 0) {
+ if (!game.state.startsWith('vm')) { logi('No influence to remove') }
+ return true
+ }
+ } else if (card === C_MY_FIRST_BANANA) {
+ let com_germany_infl = spaces.filter(space => space.country === 'East_Germany' && game.comInfl[space.space_id] > 0).length
+ if (com_germany_infl === 0) {
+ if (!game.state.startsWith('vm')) { logi('No influence to remove') }
+ return true
+ }
}
else {
return false