From ec52d203a56d973e97f406798890a91939c0c89c Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 20 Sep 2024 11:39:27 +0100 Subject: Fix for Tear Gas --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 6b4f420..9c6dbb4 100644 --- a/rules.js +++ b/rules.js @@ -21,7 +21,7 @@ const countries = ['Poland', 'Hungary', 'East_Germany', 'Bulgaria', 'Czechoslova const elite_spaces = [12, 15, 27, 43, 51, 69] const all_power_cards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 ] const numberless_cards = [25, 26, 27, 28, 29, 30, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52] -const auto_resolve_events = [5, 8, 9, 13, 17, 25, 26, 30, 35, 50, 53, 59, 62, 63, 65, 72, 74, 99, 102, 108] +const auto_resolve_events = [5, 8, 9, 13, 17, 25, 26, 30, 35, 50, 53, 59, 62, 63, 65, 70, 72, 74, 99, 102, 108] const switch_events = [6, 20, 71] exports.scenarios = [ "Standard" ] @@ -2117,7 +2117,7 @@ function do_sc(space) { // Events which modify SC rolls - if (game.persistent_events['tear_gas'] && spaces[clicked_space.socio === 6]) { + if (game.active === COM && game.persistent_events['tear_gas'] && spaces[clicked_space].socio === 6) { roll ++ log('+1 from C30') permanently_remove(30) -- cgit v1.2.3