From 89b315d2f12f42b28c9bb6e2f86c31b801ee354d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 15 Sep 2024 00:25:25 +0200 Subject: Confirm before Lake Schooner loss of control. --- rules.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 5862025..f10039d 100644 --- a/rules.js +++ b/rules.js @@ -2644,6 +2644,7 @@ states.designate_force = { break case 'intercept': // Must be a force to proceed (leader + at least one unit) + view.where = moving_piece_space() if (count_units_in_force(commander) > 0) view.actions.intercept = 1 break @@ -3434,10 +3435,9 @@ states.move = { if (is_enemy_card_available(LAKE_SCHOONER)) { if (has_enemy_fortifications(to) && is_lake_connection(from, to)) { - set_active_enemy() game.move.lake_schooner = to - game.state = 'lake_schooner' - return goto_retroactive_foul_weather() + game.state = "lake_schooner_confirm" + return } } @@ -3473,6 +3473,20 @@ states.move = { }, } +states.lake_schooner_confirm = { + prompt() { + view.prompt = "You may be interrupted by Lake Schooner. Continue?" + view.who = moving_piece() + view.where = game.move.lake_schooner + view.actions.move = 1 + }, + move() { + set_active_enemy() + game.state = 'lake_schooner' + return goto_retroactive_foul_weather() + }, +} + states.drop_off = { inactive() { inactive_prompt("move", moving_piece(), 0) -- cgit v1.2.3