diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-04 20:26:48 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-04 20:26:48 +0200 |
commit | 3653a97c495d9bea069099456b9fe5f4af4ce3cf (patch) | |
tree | b94a01ccc5bd5dae65d47e7b32b2b896aa775d04 | |
parent | 8aa0bd518653685bc6a6410de4fcd8427d517550 (diff) | |
download | andean-abyss-3653a97c495d9bea069099456b9fe5f4af4ce3cf.tar.gz |
Handle empty mark list in event 5.
-rw-r--r-- | rules.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1197,9 +1197,10 @@ function is_adjacent_to_3econ_pipeline(s) { } function is_with_or_adjacent_to_mark(s, list) { - for (let x of list) - if (x === s || is_adjacent(x, s)) - return true + if (list) + for (let x of list) + if (x === s || is_adjacent(x, s)) + return true return false } |