summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-21 13:57:44 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit1ec1c63a723ae2eb18938aaa63e74385c57d636b (patch)
tree263b946c98385b6e9a9d3e3d732cdfa07b89c6e3 /rules.js
parentf42f038b7db5097e0542263a7fab69d20d248b0b (diff)
downloadnevsky-1ec1c63a723ae2eb18938aaa63e74385c57d636b.tar.gz
Loser who removes lord from losses should transfer assets.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 16285da..92e354a 100644
--- a/rules.js
+++ b/rules.js
@@ -9313,6 +9313,8 @@ states.battle_losses_remove = {
},
lord(lord) {
set_delete(game.battle.retreated, lord)
+ if (game.active === game.battle.loser)
+ transfer_assets_except_ships(lord)
if (can_ransom_lord_battle(lord)) {
goto_ransom(lord)
} else {