summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 0b68ade..e688381 100644
--- a/rules.js
+++ b/rules.js
@@ -798,6 +798,11 @@ function can_block_sea_move_to(who, to) {
}
function can_block_sea_move_from(who, from) {
+ if (from === TYRE || from === TRIPOLI) {
+ // besieged player controls port!
+ if (is_under_siege(from) && besieged_player(from) !== game.active)
+ return false
+ }
if (is_friendly_port(from))
return true
if (can_leave_besieged_port(from))