summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index d3c4dd6..85f22b2 100644
--- a/rules.js
+++ b/rules.js
@@ -3099,6 +3099,12 @@ function is_auto_resolve(card) {
if (!game.state.startsWith('vm')) { logi('No influence to remove') }
return true
}
+ } else if (card === C_POLITBURO_INTRIGUE) {
+ let dem_bulgaria_infl = spaces.filter(space => space.country === 'Bulgaria' && game.demInfl[space.space_id] > 0).length
+ if (dem_bulgaria_infl === 0) {
+ if (!game.state.startsWith('vm')) { logi('No influence to remove') }
+ return true
+ }
}
else {
return false
@@ -6660,7 +6666,7 @@ states.vm_kiss_of_death = {
}
} else {
change_player()
- log('Event does not occur')
+ logi('Event does not occur')
vm_next()
}
},
@@ -8196,7 +8202,7 @@ CODE[35] = [ // Heal our Bleeding Wounds*
CODE[36] = [ // Dash for the West*
[ vm_permanently_remove ],
- [ vm_prompt, 'Dash for the West: select any Democratic Event with an asterisk(*) from the discard pile. Event occurs immediately' ],
+ [ vm_prompt, 'Dash for the West: select any Democratic Event with an asterix(*) from the discard pile. Event occurs immediately' ],
[ vm_dash_for_the_west ],
[ vm_return ],
]
@@ -8565,9 +8571,11 @@ CODE[81] = [ // The Baltic Way*
CODE[82] = [ // Spitzel*
[ vm_permanently_remove ],
+ [ vm_if, ()=>!is_auto_resolve(C_SPITZEL) ],
[ vm_valid_spaces_country_opp, 'East_Germany' ],
[ vm_prompt, ' from East Germany' ],
[ vm_remove_opp_infl, 2 ],
+ [ vm_endif ],
[ vm_return ],
]
@@ -8644,12 +8652,14 @@ CODE[90] = [ // Civic Forum*
CODE[91] = [ // My First Banana*
[ vm_permanently_remove ],
+ [ vm_if, ()=>!is_auto_resolve(C_MY_FIRST_BANANA) ],
[ vm_valid_spaces_country_opp, 'East_Germany' ],
[ vm_prompt, ' from East Germany' ],
[ vm_remove_opp_infl, 2 ],
[ vm_valid_spaces_country_sc, 'East_Germany' ],
[ vm_prompt, 'select a space in East Germany' ],
[ vm_support_check, 2 ],
+ [ vm_endif ],
[ vm_return ],
]
@@ -8713,12 +8723,14 @@ CODE[97] = [ // The Tyrant is Gone*
CODE[98] = [ // Politburo Intrigue*
[ vm_permanently_remove ],
+ [ vm_if, ()=>!is_auto_resolve(C_POLITBURO_INTRIGUE) ],
[ vm_valid_spaces_country_opp, 'Bulgaria' ],
[ vm_prompt, ' from Bulgaria' ],
[ vm_remove_limited_opp_infl, 3, 2 ],
[ vm_valid_spaces_country_sc, 'Bulgaria' ],
[ vm_prompt, 'make a support check in Bulgaria' ],
[ vm_1_support_check ],
+ [ vm_endif ],
[ vm_return ],
]