diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-22 18:18:54 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-22 18:18:54 +0200 |
commit | 591e6947fa4eb371f470ca09b2c2b700ea7be911 (patch) | |
tree | 4679d896e20150f116a126788dbad38585d20b9c | |
parent | 9eab40572798003c4fd19d3b966e262b0c023080 (diff) | |
download | nevsky-591e6947fa4eb371f470ca09b2c2b700ea7be911.tar.gz |
Don't get stuck on Veliky Knyaz if full on transports.
-rw-r--r-- | rules.js | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -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) { |