summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 4bf7a33..b991456 100644
--- a/rules.js
+++ b/rules.js
@@ -3077,7 +3077,12 @@ function is_auto_resolve(card) {
if (!game.state.startsWith('vm')) { logi('No SPs to remove') }
return true
}
- }
+ } else if (card === C_EXIT_VISAS) {
+ if (game.democrat_hand.length === 0) {
+ if (!game.state.startsWith('vm')) { logi('Democrat has no cards to discard') }
+ return true
+ }
+ }
else {
return false
}
@@ -8478,8 +8483,10 @@ CODE[74] = [ // FRG Embassies
]
CODE[75] = [ // Exit Visas*
+ [ vm_if, ()=>!is_auto_resolve(C_EXIT_VISAS) ],
[ vm_permanently_remove ],
[ vm_exit_visas ],
+ [ vm_endif ],
[ vm_return ],
]