From 547f0a48eea3f4438cdc84e39ab5118aeb13914f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 3 Jan 2023 23:00:53 +0100 Subject: Allow not swapping lords in storming. --- play.js | 1 + rules.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/play.js b/play.js index a981407..b7286ed 100644 --- a/play.js +++ b/play.js @@ -1582,6 +1582,7 @@ function on_update() { action_button("end_plow_and_reap", "End plow and reap") action_button("end_ransom", "End ransom") action_button("end_remove", "End remove") + action_button("end_reposition", "End reposition") action_button("end_sally", "End sally") action_button("end_setup", "End setup") action_button("end_spoils", "End spoils") diff --git a/rules.js b/rules.js index 17ae9b0..d766228 100644 --- a/rules.js +++ b/rules.js @@ -6780,6 +6780,7 @@ states.reposition_storm = { for (let lord of game.battle.reserves) if (is_friendly_lord(lord) && lord !== game.who) gen_action_lord(lord) + view.action.end_reposition = 1 }, lord(lord) { log(`Swapped in L${lord}.`) @@ -6793,6 +6794,9 @@ states.reposition_storm = { } end_reposition_storm() }, + end_reposition() { + end_reposition_storm() + }, } // === BATTLE: TOTAL HITS === -- cgit v1.2.3