diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-08 16:41:33 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 1faab5f80697d9a4c9dba5654c7a9a7d4b2257de (patch) | |
tree | 2646ff43bf3f838569f99a92f08f99e0d3b28810 | |
parent | 3062517a5f468e5354a51dac855ae8bf74c0b207 (diff) | |
download | nevsky-1faab5f80697d9a4c9dba5654c7a9a7d4b2257de.tar.gz |
Fix Ransom.
-rw-r--r-- | rules.js | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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}`) |