From 4607d2ee265b0ff7f3aa737b77bf726f28d8da9f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 16 Sep 2022 16:26:18 +0200 Subject: Don't allow placing fleets in ports with enemy fleets with Syracuse card. --- rules.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index b340c95..b7b2025 100644 --- a/rules.js +++ b/rules.js @@ -2747,7 +2747,11 @@ function play_triremes() { } function can_play_support_from_syracuse() { - return count_greek_fleets(RESERVE) > 0; + if (count_greek_fleets(RESERVE) > 0) + for (let port of PORTS) + if (is_greek_control(port) && count_persian_fleets(port) === 0) + return true + return false } function play_support_from_syracuse() { @@ -2761,7 +2765,7 @@ states.support_from_syracuse = { view.prompt = "Support from Syracuse: Place all Greek fleets from your reserve."; if (count_greek_fleets(RESERVE) > 0) { for (let port of PORTS) - if (is_greek_control(port)) + if (is_greek_control(port) && count_persian_fleets(port) === 0) gen_action(view, 'port', port); } else { gen_action(view, 'next'); -- cgit v1.2.3