diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-21 14:49:46 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | 90ef2b73ab84193dd4eb0310b1fe01da08cf760b (patch) | |
tree | a56d369495c979335530d23fb0f0953034391e85 /rules.js | |
parent | 4b3480c155d7224d3142e545047e91d3686856f2 (diff) | |
download | richard-iii-90ef2b73ab84193dd4eb0310b1fe01da08cf760b.tar.gz |
Cancel retreats by clicking the selected block.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2514,6 +2514,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.active == game.piracy && game.is_pirate[game.who]) { view.prompt = "Retreat: Move the army to a friendly or vacant areas in the same sea zone."; for (let to of AREAS[game.where].exits) @@ -2543,6 +2544,9 @@ states.retreat_in_battle = { eliminate_block(game.who); resume_battle(); }, + block: function () { + resume_battle(); + }, undo: function () { resume_battle(); } |