summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-17 17:36:27 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-17 17:36:27 +0000
commit925f5383084a6bd578d13b8115af4d700cc9dedd (patch)
treea8f25b859a4f5567d8a66d17bc40fb0c33c1f9ab
parentcb1d0d639e9e62054b8b3f3b4b2f464fb71bbf19 (diff)
download1989-dawn-of-freedom-925f5383084a6bd578d13b8115af4d700cc9dedd.tar.gz
Fix autoresolve
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index d46a814..ba66355 100644
--- a/rules.js
+++ b/rules.js
@@ -3078,7 +3078,7 @@ function is_auto_resolve(card) {
return true
}
} else if (card === C_DASH_FOR_THE_WEST) {
- if (!game.strategy_discard.includes(dem_asterisks)) {
+ if (!dem_asterisks.some( c => game.strategy_discard.includes(c))) {
if (!game.state.startsWith('vm')) { logi('No Democratic Events with an asterisk in the discard') }
return true
}
@@ -8177,7 +8177,7 @@ CODE[35] = [ // Heal our Bleeding Wounds*
CODE[36] = [ // Dash for the West*
[ vm_permanently_remove ],
[ vm_if, ()=>!is_auto_resolve(C_DASH_FOR_THE_WEST) ],
- [ vm_prompt, 'Dash for the West: select any Democratic event with an asterix(*) from the discard pile. Event occurs immediately' ],
+ [ vm_prompt, 'Dash for the West: select any Democratic Event with an asterisk(*) from the discard pile. Event occurs immediately' ],
[ vm_dash_for_the_west ],
[ vm_endif ],
[ vm_return ],