summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-09-22 10:51:07 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit7252c86de51bfc25f8b5ffc5ac1c427de1485dea (patch)
tree5b8a5ffce32fa3d294cb4311d63639c4b78c2ab1 /rules.js
parentc1e4e13bcb2107686f5be237eab888e98e17801d (diff)
downloadplantagenet-7252c86de51bfc25f8b5ffc5ac1c427de1485dea.tar.gz
small bugfix parley
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0095471..8871d37 100644
--- a/rules.js
+++ b/rules.js
@@ -3117,11 +3117,11 @@ function can_action_parley_levy() {
function parley_adjacent(here, lord) {
let seaports = []
- if (is_seaport(here) && get_lord_assets(lord, SHIP) > 0 ) {
+ if (is_seaport(here) && get_shared_assets(lord, SHIP) > 0 ) {
if (data.port_1.includes(here)) seaports = data.port_1
if (data.port_2.includes(here)) seaports = data.port_2
if (data.port_3.includes(here)) seaports = data.port_3
- } else if (is_exile(here) && get_lord_assets(lord, SHIP) > 0) {
+ } else if (is_exile(here) && get_shared_assets(lord, SHIP) > 0) {
return find_ports_from_exile(here)
}
return data.locales[here].adjacent.concat(seaports)