summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0864b57..3678135 100644
--- a/rules.js
+++ b/rules.js
@@ -5968,9 +5968,10 @@ states.flee_battle = {
for (let p of battle_strike_positions)
if (is_friendly_lord(game.battle.array[p]))
gen_action_lord(game.battle.array[p]);
- view.actions.battle = 1;
+ view.actions.end_flee = 1;
},
- battle() {
+ battle() { this.end_flee(); }, // TODO: remove backwards compatibility
+ end_flee() {
end_flee();
},
lord(lord) {