From 94465fe0c4b0d83b3bdb1bee6998b55fb168ebdb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 6 Oct 2023 21:34:44 +0200 Subject: Allow is_selected_op_space with free actions from events. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3