diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-12 12:43:28 +0100 |
---|---|---|
committer | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-12 12:43:28 +0100 |
commit | 7e9171f026e07ea7730889fb239abf3a041047c4 (patch) | |
tree | ea08ccf88c9308e4616f8267bc469330100a61dc /rules.js | |
parent | c391c4c559814fa33436b49a71a85dac60a3b6fa (diff) | |
download | plantagenet-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.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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() { |