diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-02 10:32:24 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | c08b50f70493e8c837ea58ecfdd6d0eb42f507aa (patch) | |
tree | 75a1428d7243f7231681c8fe40b34c081c6a7824 | |
parent | 0ef8f84e4b9206806e39d105f8a748d6215a968d (diff) | |
download | nevsky-c08b50f70493e8c837ea58ecfdd6d0eb42f507aa.tar.gz |
Fix Ransom + Remove after battle.
-rw-r--r-- | play.html | 4 | ||||
-rw-r--r-- | play.js | 2 | ||||
-rw-r--r-- | rules.js | 2 |
3 files changed, 2 insertions, 6 deletions
@@ -138,10 +138,6 @@ body.Teutons #plan_actions .russian { display: none } /* BATTLE GRID WITH LORD MATS */ -#battle_panel { - width: 1275px; -} - #battle_grid { display: grid; grid-template-columns: auto auto auto; @@ -1704,7 +1704,7 @@ function update_battle() { } function is_lord_in_battle(lord) { - if (view.battle) { + if (view.battle && view.battle.array) { for (let i = 0; i < 12; ++i) if (view.battle.array[i] === lord) return true @@ -9488,8 +9488,8 @@ states.battle_remove = { disband_lord(lord, true) remove_legate_if_endangered(game.battle.where) lift_sieges() + goto_battle_remove() } - goto_battle_remove() }, } |