summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-02-12 12:43:28 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-02-12 12:43:28 +0100
commit7e9171f026e07ea7730889fb239abf3a041047c4 (patch)
treeea08ccf88c9308e4616f8267bc469330100a61dc /rules.js
parentc391c4c559814fa33436b49a71a85dac60a3b6fa (diff)
downloadplantagenet-7e9171f026e07ea7730889fb239abf3a041047c4.tar.gz
fix L33 surprise landing in calais
it's stupid to use it there but still removing the possibility of playing
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 246958b..ae5dd96 100644
--- a/rules.js
+++ b/rules.js
@@ -4153,10 +4153,9 @@ function can_play_rebel_supply_depot() {
}
function can_play_surprise_landing() {
- if (game.flags.surprise_landing === 1 && is_seaport(get_lord_locale(game.command))) {
- return true
- }
- return false
+ if (game.flags.surprise_landing === 0 || !is_seaport(get_lord_locale(game.command)) || data.locales[get_lord_locale(game.command)].type === "calais")
+ return false
+ return true
}
function can_play_yorkist_parade() {