diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-12 22:54:21 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-21 21:11:43 +0100 |
commit | eb75ac62d218446117faa2bbbb93c48a7520d270 (patch) | |
tree | 3f1430093e96d93049d0c093249171029bbf3498 | |
parent | d6a4cd962b91cd574d7f17193416e1fdd3fcf1b7 (diff) | |
download | wilderness-war-eb75ac62d218446117faa2bbbb93c48a7520d270.tar.gz |
Acadians Expelled: Amphib is enough to prevent units from being placed.
-rw-r--r-- | rules.js | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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) { |