From 51cb0a52241ee6b7f0105bc67c4167ee19a5a136 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Fri, 24 Nov 2023 21:03:14 +0100 Subject: fix remove all --- rules.js | 4 ++-- 1 file 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) -- cgit v1.2.3