From e42824e31df8da35b77d8f3ec968acdbc68965f8 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 19 Nov 2024 18:19:13 +0000 Subject: Update to auto_resolve Ceausescu --- rules.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rules.js') 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') -- cgit v1.2.3