summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2025-01-29 11:32:04 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2025-01-29 15:18:42 +0100
commit6054551fc2da4701bdc4d6d92e8106ffb91f4e6d (patch)
treed30e66c33a20f0101977e6ff8f3eb9a3c639dd63
parent6dffcd4bb237e9315b465f6504639530b32a03b5 (diff)
downloadplantagenet-6054551fc2da4701bdc4d6d92e8106ffb91f4e6d.tar.gz
fix supply with overland route
-rw-r--r--rules.js2
-rw-r--r--rules.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index e2fbb0b..a54a52c 100644
--- a/rules.js
+++ b/rules.js
@@ -3556,7 +3556,7 @@ states.select_supply_type = {
},
port() {
// blockade at source or destination
- if (can_naval_blockade(get_lord_locale(game.command)) || can_naval_blockade(game.where)) {
+ if (can_naval_blockade(game.where) || (is_exile_box(get_lord_locale(game.command)) && can_naval_blockade_route(get_lord_locale(game.command)))) {
game.state = "blockade_supply";
}
else {
diff --git a/rules.ts b/rules.ts
index 6d122d3..3987d3f 100644
--- a/rules.ts
+++ b/rules.ts
@@ -4324,7 +4324,7 @@ states.select_supply_type = {
},
port() {
// blockade at source or destination
- if (can_naval_blockade(get_lord_locale(game.command)) || can_naval_blockade(game.where)) {
+ if (can_naval_blockade(game.where) || (is_exile_box(get_lord_locale(game.command)) && can_naval_blockade_route(get_lord_locale(game.command)))) {
game.state = "blockade_supply"
} else {
use_port_supply(game.where, get_port_supply_amount(game.where, true))