diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-09-22 10:51:07 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 7252c86de51bfc25f8b5ffc5ac1c427de1485dea (patch) | |
tree | 5b8a5ffce32fa3d294cb4311d63639c4b78c2ab1 /rules.js | |
parent | c1e4e13bcb2107686f5be237eab888e98e17801d (diff) | |
download | plantagenet-7252c86de51bfc25f8b5ffc5ac1c427de1485dea.tar.gz |
small bugfix parley
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |