summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-04 20:26:48 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-04 20:26:48 +0200
commit3653a97c495d9bea069099456b9fe5f4af4ce3cf (patch)
treeb94a01ccc5bd5dae65d47e7b32b2b896aa775d04
parent8aa0bd518653685bc6a6410de4fcd8427d517550 (diff)
downloadandean-abyss-3653a97c495d9bea069099456b9fe5f4af4ce3cf.tar.gz
Handle empty mark list in event 5.
-rw-r--r--rules.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 2bffc12..5e7c836 100644
--- a/rules.js
+++ b/rules.js
@@ -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
}