summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-13 13:49:36 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-13 13:49:36 +0100
commitcd31730f82458a524da88786aca497cd22df890e (patch)
tree634a4eb3c0d99bcfd6ccb5568ea19532c2b0b4d7
parent8dc7e3a580cf2e2d87794060f38b911753f8541e (diff)
downloadred-flag-over-paris-cd31730f82458a524da88786aca497cd22df890e.tar.gz
Check stacking limits during spread influence.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 6e88d90..4a0b178 100644
--- a/rules.js
+++ b/rules.js
@@ -2037,7 +2037,7 @@ states.spread_influence = {
for_each_friendly_cube(s, gen_action_piece)
} else {
for (let s of dimension)
- if (game.pieces[game.who] !== s)
+ if (game.pieces[game.who] !== s && count_friendly_cubes(s) < 4)
gen_action_space(s)
}
view.actions.done = 1