summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-14 21:34:13 +0200
committerTor Andersson <tor@ccxvii.net>2023-06-14 21:34:13 +0200
commit0e42289516dd4f2282dc08f3bb7314cd185fce3e (patch)
treeb0158f0be3a9873d7e4d9db915b8e09c7d169456
parentf7762d9d5a6ee07bdb4cc74a4e7a6fd25d0589d6 (diff)
downloadred-flag-over-paris-0e42289516dd4f2282dc08f3bb7314cd185fce3e.tar.gz
Fix turncoat stacking check bug.
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
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]