summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-21 14:49:46 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commit1be131828fb2d362e4be47d23ca2be883f055dca (patch)
tree00abdcbf5d7c554908ae26cc16bfa6bae0afc483 /rules.js
parente0b289a03cda4515a213bd876545e0ccdea28677 (diff)
downloadjulius-caesar-1be131828fb2d362e4be47d23ca2be883f055dca.tar.gz
Cancel retreats by clicking the selected block.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
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();
},