From b77e42388da4a7e580170ddb380ff60a6e9a4ed6 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:06:29 +0100 Subject: fix bug when active lord exile before battle --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index c605204..1d876c9 100644 --- a/rules.js +++ b/rules.js @@ -6610,7 +6610,7 @@ function goto_exiles() { let here = get_lord_locale(game.command) if (has_enemy_lord(here)) { spend_all_actions() // end command upon any approach - + game.where = here game.state = "exiles" set_active_enemy() } else { @@ -7869,7 +7869,7 @@ function start_battle() { log_h3(`Battle at %${here}`) - init_battle(here, 0, 0) + init_battle(game.where, 0, 0) // Troops by capability @@ -9891,7 +9891,7 @@ function goto_battle_aftermath() { // Recovery spend_all_actions() - + game.where = NOWHERE game.battle = 0 game.flags.bloody = 0 end_march() -- cgit v1.2.3