diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-21 14:49:46 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:17 +0100 |
commit | 70fe9b2c889f5b8cbca1845e996f325494b1edf4 (patch) | |
tree | 3fb4f0f7cda6f452cad709c3e41d4d6150c6d99f /rules.js | |
parent | 78f831bfe00569981739c51a34a96e9b0237456f (diff) | |
download | hammer-of-the-scots-70fe9b2c889f5b8cbca1845e996f325494b1edf4.tar.gz |
Cancel retreats by clicking the selected block.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1856,6 +1856,7 @@ states.retreat_in_battle = { if (is_inactive_player(current)) return view.prompt = "Waiting for " + game.active + " to retreat."; gen_action(view, 'undo'); + gen_action(view, 'block', game.who); if (game.who == NORSE) { view.prompt = "Retreat: Move the army to a friendly coastal area."; for (let to in AREAS) @@ -1881,6 +1882,10 @@ states.retreat_in_battle = { game.who = null; resume_battle(); }, + block: function () { + game.who = null; + resume_battle(); + }, undo: function () { game.who = null; resume_battle(); |