From 3653019b7fee1c318a7d16ca53002c4e8e069c98 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 25 Apr 2024 19:15:18 +0200 Subject: Besiegers can't sea move away from besieged fortified port. --- rules.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rules.js') 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)) -- cgit v1.2.3