summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-22 18:18:54 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-22 18:18:54 +0200
commit591e6947fa4eb371f470ca09b2c2b700ea7be911 (patch)
tree4679d896e20150f116a126788dbad38585d20b9c
parent9eab40572798003c4fd19d3b966e262b0c023080 (diff)
downloadnevsky-591e6947fa4eb371f470ca09b2c2b700ea7be911.tar.gz
Don't get stuck on Veliky Knyaz if full on transports.
-rw-r--r--rules.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 2aa19e8..6db7903 100644
--- a/rules.js
+++ b/rules.js
@@ -3578,12 +3578,21 @@ states.muster_lord_transport = {
if (can_add_transport(game.who, SHIP))
view.actions.take_ship = 1
}
- if (can_add_transport(game.who, BOAT))
+ let done = true
+ if (can_add_transport(game.who, BOAT)) {
+ done = false
view.actions.take_boat = 1
- if (can_add_transport(game.who, CART))
+ }
+ if (can_add_transport(game.who, CART)) {
+ done = false
view.actions.take_cart = 1
- if (can_add_transport(game.who, SLED))
+ }
+ if (can_add_transport(game.who, SLED)) {
+ done = false
view.actions.take_sled = 1
+ }
+ if (done)
+ view.actions.done = 1
},
take_ship() {
push_undo()
@@ -3609,6 +3618,11 @@ states.muster_lord_transport = {
--game.count
resume_muster_lord_transport()
},
+ done() {
+ push_undo()
+ game.count = 0
+ resume_muster_lord_transport()
+ },
}
function lord_has_capability_card(lord, c) {