From eb75ac62d218446117faa2bbbb93c48a7520d270 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 12 Jan 2024 22:54:21 +0100 Subject: Acadians Expelled: Amphib is enough to prevent units from being placed. --- rules.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rules.js b/rules.js index f0cfa6e..947f71a 100644 --- a/rules.js +++ b/rules.js @@ -8604,7 +8604,7 @@ events.french_regulars = { return false if (game.events.quiberon) return false - if (!has_british_units(QUEBEC)) + if (!has_british_units(QUEBEC) && !has_amphib(QUEBEC)) return true if (!has_british_units(LOUISBOURG) && !has_amphib(LOUISBOURG)) return true @@ -8636,7 +8636,7 @@ states.french_regulars = { view.prompt = `French Regulars \u2014 done.` } if (game.count > 0) { - if (!has_british_units(QUEBEC)) + if (!has_british_units(QUEBEC) && !has_amphib(QUEBEC)) gen_action_space(QUEBEC) if (!has_british_units(LOUISBOURG) && !has_amphib(LOUISBOURG)) gen_action_space(LOUISBOURG) @@ -8937,11 +8937,13 @@ states.acadians_expelled_place_coureurs = { inactive: 'Acadians expelled (place coureurs)', prompt() { view.prompt = "Acadians Expelled: Place a Coureurs unit at Québec or Louisbourg." - if (!has_british_units(QUEBEC)) + let quebec = has_british_units(QUEBEC) || has_amphib(QUEBEC) + let louisbourg = has_british_units(LOUISBOURG) || has_amphib(LOUISBOURG) + if (!quebec) gen_action_space(QUEBEC) - if (!has_british_units(LOUISBOURG)) + if (!louisbourg) gen_action_space(LOUISBOURG) - if (has_british_units(QUEBEC) && has_british_units(LOUISBOURG)) + if (quebec && louisbourg) gen_action_pass() }, space(s) { -- cgit v1.2.3