summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-19 19:22:49 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitf92474517f34250f6fd81ce2beefd0ae80a39ab5 (patch)
tree5c46ea1ba6e81b6b9dc05165f186f819c01d43c8
parent5827796cad5ac1cae00dad04cab06292dd9b5ed9 (diff)
downloadwilderness-war-f92474517f34250f6fd81ce2beefd0ae80a39ab5.tar.gz
fixup Surrender
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 28429c2..e1f7586 100644
--- a/rules.js
+++ b/rules.js
@@ -5050,7 +5050,10 @@ states.massacre_after_surrender = {
function goto_surrender_place() {
set_active(enemy());
game.state = 'surrender';
- game.surrender = find_closest_friendly_unbesieged_fortification(game.siege_where);
+ if (game.siege_where === LOUISBOURG)
+ game.surrender = find_closest_friendly_unbesieged_fortification(QUEBEC);
+ else
+ game.surrender = find_closest_friendly_unbesieged_fortification(game.siege_where);
}
states.surrender = {