From 1faab5f80697d9a4c9dba5654c7a9a7d4b2257de Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 8 Jan 2023 16:41:33 +0100 Subject: Fix Ransom. --- rules.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rules.js') 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}`) -- cgit v1.2.3