From a61433b1a2b11055b9a3a75d0ce04499be13986d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Jun 2021 21:50:38 +0200 Subject: Small fixes to block games. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') 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, -- cgit v1.2.3