From 1be131828fb2d362e4be47d23ca2be883f055dca Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 May 2021 14:49:46 +0200 Subject: Cancel retreats by clicking the selected block. --- rules.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules.js b/rules.js index 57bb672..cbc0c8e 100644 --- a/rules.js +++ b/rules.js @@ -1881,6 +1881,7 @@ states.retreat = { } } gen_action(view, 'undo'); + gen_action(view, 'block', game.who); }, space: function (to) { let from = game.location[game.who]; @@ -1900,6 +1901,9 @@ states.retreat = { eliminate_block(game.who); resume_battle(); }, + block: function () { + resume_battle(); + }, undo: function () { resume_battle(); }, -- cgit v1.2.3