From e234378a34fa9e19d73c24974f6863b8c5b39212 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 11 Jul 2023 11:21:25 +0200 Subject: Fix bug with insurrection. --- rules.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 93c6637..a9c78d1 100644 --- a/rules.js +++ b/rules.js @@ -2353,7 +2353,7 @@ states.insurrection = { game.pieces[game.selected] = Kabul game.selected = -1 if (--game.count > 0) - game.selected = select_available_block() + game.selected = select_afghan_block() }, next() { push_undo() @@ -3242,8 +3242,6 @@ exports.resign = function (state, current) { return save_game() } -exports.is_checkpoint = (a, b) => a.phasing !== b.phasing - exports.view = function (state, current) { current = player_index[current] load_game(state) -- cgit v1.2.3