summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-19 18:19:13 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-19 18:19:13 +0000
commite42824e31df8da35b77d8f3ec968acdbc68965f8 (patch)
tree077b43f36ed36c63c1715f292ce56adbdf38cc06 /rules.js
parentd1b45736edcffd586b7888aff4e5fe5ccf83e533 (diff)
download1989-dawn-of-freedom-e42824e31df8da35b77d8f3ec968acdbc68965f8.tar.gz
Update to auto_resolve Ceausescu
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 99b14a7..349e9d7 100644
--- a/rules.js
+++ b/rules.js
@@ -3018,7 +3018,7 @@ function is_auto_resolve(card) {
if (!game.state.startsWith('vm')) { logi('Minorities spaces already controlled') }
return true
}
- } else if (card === C_CEAUSESCU) {
+ } else if (card === C_CEAUSESCU && game.active === DEM) {
let dem_romania_infl = spaces.filter(space => space.country === 'Romania' && game.demInfl[space.space_id] > 0).length
if (dem_romania_infl === 0) {
if (!game.state.startsWith('vm')) { logi('No influence to remove') }
@@ -4239,7 +4239,6 @@ function vm_valid_spaces_sc () {
}
function vm_valid_spaces_country_opp () {
- console.log('in vm_valid_spaces_country_opp')
let country = ''
if (vm_operand(1)) {
country = vm_operand(1) }
@@ -5679,7 +5678,6 @@ states.vm_remove_infl = {
inactive: 'remove Support Points.',
prompt () {
// Keep this so that there is an undo option in, e.g., Scare Tactics
- console.log('in vm_remove_infl')
if (game.valid_spaces.length === 0 && game.vm_available_ops > 0) {
view.prompt = `${clean_name(cards[this_card()].name)}: no further SPs to remove.`
gen_action('done')