summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-31 22:44:21 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit10aab982ed82610f9f1112736929e2e07c9f6ad7 (patch)
treefe5e0dc7c6997efe9abf631441e0d1961a9cd8fd
parent4620136eeac88c66839bdd5aca1eb37376265c34 (diff)
downloadwilderness-war-10aab982ed82610f9f1112736929e2e07c9f6ad7.tar.gz
Fix removing two 7 command leaders at once.
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5ac89f0..0f98c02 100644
--- a/rules.js
+++ b/rules.js
@@ -6933,9 +6933,10 @@ states.max_two_7_command_leaders_in_play = {
piece(p) {
push_undo()
eliminate_piece(p)
- delete game.seven
+ remove_from_array(game.seven, p)
},
next() {
+ delete game.seven
end_action_phase()
}
}