From 925f5383084a6bd578d13b8115af4d700cc9dedd Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sun, 17 Nov 2024 17:36:27 +0000 Subject: Fix autoresolve --- rules.js | 4 ++-- 1 file 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 ], -- cgit v1.2.3