summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-14 18:02:15 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-14 18:02:15 +0000
commit353d1e6265f6296905897024a7ae8a7f99ed4925 (patch)
treea4a626625a1b67e95b8d5ed0a53443833a6ab1f1 /rules.js
parent6911443514135896a8bda0a28ff3a03ddaca9f3b (diff)
download1989-dawn-of-freedom-353d1e6265f6296905897024a7ae8a7f99ed4925.tar.gz
Fix autoresolve Government Resigns
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 82ce1fc..0f83bac 100644
--- a/rules.js
+++ b/rules.js
@@ -3042,7 +3042,7 @@ function is_auto_resolve(card) {
}
}
else if (card === C_GOVERNMENT_RESIGNS) {
- let uncontrolled_elites = spaces.filter( space => game.comInfl[space.space_id] > 0 && !check_control(space.space_id)).length
+ let uncontrolled_elites = spaces.filter( space => spaces[space.space_id].socio === 1 && game.comInfl[space.space_id] > 0 && !check_control(space.space_id)).length
if (uncontrolled_elites === 0) {
if (!game.state.startsWith('vm')) { logi('No uncontrolled Elite spaces') }
return true
@@ -7713,7 +7713,7 @@ states.vm_tst_8 = {
},
event() {
push_undo()
- log('Event')
+ log(`C${game.played_card}:`)
game.vm_event_to_do = false
game.return_state = 'vm_tst_8'
game.return = game.active