summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-06 21:34:44 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-06 21:34:44 +0200
commit94465fe0c4b0d83b3bdb1bee6998b55fb168ebdb (patch)
treedd6f09321adf8b563fd16936de11d273e05c3d53
parent0911289dd435647f5c0243b4cd290671bdb91010 (diff)
downloadandean-abyss-94465fe0c4b0d83b3bdb1bee6998b55fb168ebdb.tar.gz
Allow is_selected_op_space with free actions from events.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index a168fd5..6506e85 100644
--- a/rules.js
+++ b/rules.js
@@ -2701,7 +2701,7 @@ function can_select_op_space(cost) {
}
function is_selected_op_space(s) {
- return set_has(game.op.spaces, s)
+ return game.op.spaces && set_has(game.op.spaces, s)
}
function select_op_space(s, cost) {