diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 11:39:27 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 11:39:27 +0100 |
commit | ec52d203a56d973e97f406798890a91939c0c89c (patch) | |
tree | e3ab586171e2da4fee578805ef6165681d470100 | |
parent | dda11334dcc8fbe2b0a22154a4b9528a76557eb7 (diff) | |
download | 1989-dawn-of-freedom-ec52d203a56d973e97f406798890a91939c0c89c.tar.gz |
Fix for Tear Gas
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)
|