From a5cad5916776ff66e7c7d224f6b2d966db8d888f Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 18 Nov 2024 15:36:32 +0000 Subject: Add autoresolve for Samizdat --- rules.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index b991456..ac40f5b 100644 --- a/rules.js +++ b/rules.js @@ -3082,6 +3082,11 @@ function is_auto_resolve(card) { if (!game.state.startsWith('vm')) { logi('Democrat has no cards to discard') } return true } + } else if (card === C_SAMIZDAT) { + if (game.democrat_hand.length === 0) { + if (!game.state.startsWith('vm')) { logi('Democrat has no cards to set aside') } + return true + } } else { return false @@ -8483,8 +8488,8 @@ CODE[74] = [ // FRG Embassies ] CODE[75] = [ // Exit Visas* - [ vm_if, ()=>!is_auto_resolve(C_EXIT_VISAS) ], [ vm_permanently_remove ], + [ vm_if, ()=>!is_auto_resolve(C_EXIT_VISAS) ], [ vm_exit_visas ], [ vm_endif ], [ vm_return ], @@ -8506,7 +8511,9 @@ CODE[76] = [ // Warsaw Pact Summit CODE[77] = [ // Samizdat [ vm_permanently_remove ], + [ vm_if, ()=>!is_auto_resolve(C_SAMIZDAT) ], [ vm_samizdat ], + [ vm_endif ], [ vm_return ], ] -- cgit v1.2.3