summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-19 21:50:38 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commita61433b1a2b11055b9a3a75d0ce04499be13986d (patch)
tree5225c07c960611a2917028bdcaddf44a548179ce /rules.js
parent3ba5a1c8ff5b53547131aab9ae23363642ac4617 (diff)
downloadhammer-of-the-scots-a61433b1a2b11055b9a3a75d0ce04499be13986d.tar.gz
Small fixes to block games.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index d6d704f..8aa76c5 100644
--- a/rules.js
+++ b/rules.js
@@ -1803,7 +1803,6 @@ states.retreat = {
if (game.location[b] == game.where && block_owner(b) == game.active)
eliminate_block(b, 'retreat');
print_turn_log("retreats");
- clear_undo();
goto_regroup();
},
block: function (who) {
@@ -1855,6 +1854,7 @@ states.retreat_to = {
},
eliminate: function () {
eliminate_block(game.who, 'retreat');
+ game.who = null;
game.state = 'retreat';
},
block: pop_undo,