From 591e6947fa4eb371f470ca09b2c2b700ea7be911 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 22 Oct 2023 18:18:54 +0200 Subject: Don't get stuck on Veliky Knyaz if full on transports. --- rules.js | 20 +++++++++++++++++--- 1 file 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) { -- cgit v1.2.3