From 093913ec08a5e35e019de46e0471e6d647a5f8ce Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 10 Sep 2024 21:28:16 +0200 Subject: Fix for "Surrender!" with only a leader inside the fortress. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 6341afa..5ff4db0 100644 --- a/rules.js +++ b/rules.js @@ -5991,7 +5991,7 @@ function goto_surrender() { function goto_surrender_place() { set_active_enemy() - if (has_friendly_units(game.siege_where)) { + if (has_friendly_pieces(game.siege_where)) { game.state = 'surrender' if (game.siege_where === LOUISBOURG) { game.surrender = find_closest_friendly_unbesieged_fortification(QUEBEC) -- cgit v1.2.3