summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-08 16:41:33 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit1faab5f80697d9a4c9dba5654c7a9a7d4b2257de (patch)
tree2646ff43bf3f838569f99a92f08f99e0d3b28810 /rules.js
parent3062517a5f468e5354a51dac855ae8bf74c0b207 (diff)
downloadnevsky-1faab5f80697d9a4c9dba5654c7a9a7d4b2257de.tar.gz
Fix Ransom.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index d540da2..4cb8ef6 100644
--- a/rules.js
+++ b/rules.js
@@ -8109,11 +8109,12 @@ states.sack = {
lord(lord) {
log(`Disbanded L${lord}.`)
transfer_assets_except_ships(lord)
- if (can_ransom_lord_battle(lord))
+ if (can_ransom_lord_battle(lord)) {
goto_ransom(lord)
- else
+ } else {
disband_lord(lord, true)
- resume_sack()
+ resume_sack()
+ }
},
}
@@ -9161,7 +9162,7 @@ function can_ransom_lord_battle() {
function goto_ransom(lord) {
clear_undo()
set_active_enemy()
- push_state(state)
+ push_state("ransom")
game.who = lord
game.count = data.lords[lord].service
log(`Ransomed L${lord}`)