diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-24 21:03:14 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-24 21:03:14 +0100 |
commit | 51cb0a52241ee6b7f0105bc67c4167ee19a5a136 (patch) | |
tree | 1ee6bb9e7db1ca9943554e8839edab087598d61d | |
parent | 5681a2eebcfcde2afa4b3daf30be2de694026ac1 (diff) | |
download | votes-for-women-51cb0a52241ee6b7f0105bc67c4167ee19a5a136.tar.gz |
fix remove all
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |