summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-09-10 21:28:16 +0200
committerTor Andersson <tor@ccxvii.net>2024-09-10 21:28:16 +0200
commit093913ec08a5e35e019de46e0471e6d647a5f8ce (patch)
tree62ec4a0af00398bdecf69c9098f383a7c09e3a9a
parent3e201b997a8f5f6957c57a2af3db8a206e653b26 (diff)
downloadwilderness-war-093913ec08a5e35e019de46e0471e6d647a5f8ce.tar.gz
Fix for "Surrender!" with only a leader inside the fortress.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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)