summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-24 21:03:14 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-24 21:03:14 +0100
commit51cb0a52241ee6b7f0105bc67c4167ee19a5a136 (patch)
tree1ee6bb9e7db1ca9943554e8839edab087598d61d
parent5681a2eebcfcde2afa4b3daf30be2de694026ac1 (diff)
downloadvotes-for-women-51cb0a52241ee6b7f0105bc67c4167ee19a5a136.tar.gz
fix remove all
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index f2c2f64..610972c 100644
--- a/rules.js
+++ b/rules.js
@@ -2459,14 +2459,14 @@ function after_vm_remove_cube(us_state) {
map_incr(game.vm.removed, us_state, 1)
if (game.vm.all) {
- if (!color_cubes(game.vm.cube, us_state)) {
+ if (!color_cubes(game.vm.cubes, us_state)) {
set_delete(game.vm.us_states, us_state)
if (game.vm.limit && map_key_count(game.vm.removed) === game.vm.limit)
return vm_next()
}
} else {
- if (!color_cubes(game.vm.cube, us_state) || map_get(game.vm.removed, us_state) === game.vm.limit)
+ if (!color_cubes(game.vm.cubes, us_state) || map_get(game.vm.removed, us_state) === game.vm.limit)
set_delete(game.vm.us_states, us_state)
if (map_count(game.vm.removed) === game.vm.count)