summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-08 16:48:29 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:40 +0100
commitf9688a1dfcdfd7dc4c061c8682942d2ea8a27dc8 (patch)
tree7e177fde84c998db38098506930a03357c1e78d3 /rules.js
parentb0a774097c1d5f9e342b65d1413354cdf064a981 (diff)
downloadnevsky-f9688a1dfcdfd7dc4c061c8682942d2ea8a27dc8.tar.gz
Fix Withdraw with lower lord.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 5515fef..6d64554 100644
--- a/rules.js
+++ b/rules.js
@@ -5166,7 +5166,7 @@ states.march_withdraw = {
if (lower !== NOBODY) {
log(`L${lower} Withdrew.`)
- set_lord_besieged(lord, 1)
+ set_lord_besieged(lower, 1)
}
},
end_withdraw() {
@@ -9300,7 +9300,7 @@ states.battle_withdraw = {
if (lower !== NOBODY) {
log(`L${lower} Withdrew.`)
- set_lord_besieged(lord, 1)
+ set_lord_besieged(lower, 1)
}
},
end_withdraw() {