summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-24 02:50:34 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitac0019298a29daafcf8cdc12c1308c5044894c8e (patch)
treeb68d829707eecca44951887dde8e255d6d193619
parente056a8383b13581a115166b026f92efb2c8b7108 (diff)
downloadwilderness-war-ac0019298a29daafcf8cdc12c1308c5044894c8e.tar.gz
Add "Amphibious Landing" prompt.
-rw-r--r--rules.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index fc4d898..2d8b10b 100644
--- a/rules.js
+++ b/rules.js
@@ -3152,9 +3152,15 @@ states.move = {
} else {
if (!game.events.no_amphib) {
if (game.active === BRITAIN && has_amphibious_arrow(from)) {
- for (let card = first_amphib_card; card <= last_amphib_card; ++card)
- if (player.hand.includes(card))
+ let has_amphib = false;
+ for (let card = first_amphib_card; card <= last_amphib_card; ++card) {
+ if (player.hand.includes(card)) {
+ has_amphib = true;
gen_action('play_event', card);
+ }
+ }
+ if (has_amphib)
+ view.prompt += ` You may play "Amphibious Landing."`;
}
}
}