From 0e42289516dd4f2282dc08f3bb7314cd185fce3e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 14 Jun 2023 21:34:13 +0200 Subject: Fix turncoat stacking check bug. --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 1a1d283..368637a 100644 --- a/rules.js +++ b/rules.js @@ -2051,7 +2051,8 @@ states.turncoat = { let dimension = DIMENSION_SPACES[game.where] view.prompt = "Turncoat in " + DIMENSION_NAME[game.where] + ": Replace an opponent's cube." for (let s of dimension) - for_each_enemy_cube(s, gen_action_piece) + if (can_replace_cube(s)) + for_each_enemy_cube(s, gen_action_piece) }, piece(p) { let s = game.pieces[p] -- cgit v1.2.3