summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-02-12 15:06:29 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-02-12 15:06:29 +0100
commitb77e42388da4a7e580170ddb380ff60a6e9a4ed6 (patch)
treefa46c185f058367ff77cace165275f2972d69efe /rules.js
parent8f1a93558e68b8dfa99c6a2470481090a6f6cba1 (diff)
downloadplantagenet-b77e42388da4a7e580170ddb380ff60a6e9a4ed6.tar.gz
fix bug when active lord exile before battle
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files 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()