diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-14 21:34:13 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-06-14 21:34:13 +0200 |
commit | 0e42289516dd4f2282dc08f3bb7314cd185fce3e (patch) | |
tree | b0158f0be3a9873d7e4d9db915b8e09c7d169456 | |
parent | f7762d9d5a6ee07bdb4cc74a4e7a6fd25d0589d6 (diff) | |
download | red-flag-over-paris-0e42289516dd4f2282dc08f3bb7314cd185fce3e.tar.gz |
Fix turncoat stacking check bug.
-rw-r--r-- | rules.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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] |