summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-11 11:21:25 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-11 11:21:25 +0200
commite234378a34fa9e19d73c24974f6863b8c5b39212 (patch)
treeddc666d566f962f9aa3fc5d1a4cdf1b28ad7374d
parentf8e31faf61c91789a89c7b96e77b8311aa48f3b4 (diff)
downloadpax-pamir-e234378a34fa9e19d73c24974f6863b8c5b39212.tar.gz
Fix bug with insurrection.
-rw-r--r--rules.js4
1 files changed, 1 insertions, 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)