summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-13 17:04:09 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit1b00669d128090cc5c12f9a4223a19498fa746c3 (patch)
treefeb34abe4dd228fa17bbde6afa0abfdb2972fe1a /rules.js
parenta99e356ecc08b0718b7870a348b7c57ac16098b1 (diff)
downloadtable-battles-1b00669d128090cc5c12f9a4223a19498fa746c3.tar.gz
reserve special rule terminology
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index f1f229d..f5d8a2d 100644
--- a/rules.js
+++ b/rules.js
@@ -2593,9 +2593,12 @@ function should_enter_reserve(c) {
return map_get(game.cubes, S37_THE_FOG, 0) === 0
}
- for (let t of reserve)
- if (is_routed(t))
- return true
+ if (Array.isArray(reserve)) {
+ for (let t of reserve) {
+ if (is_routed(t))
+ return true
+ }
+ }
if (game.scenario === S30_EDGEHILL) {
if (c === S30_BALFOUR || c === S30_STAPLETON) {