summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index eef7af0..337f982 100644
--- a/rules.js
+++ b/rules.js
@@ -1937,18 +1937,22 @@ states.regroup = {
},
end_regroup: function () {
print_turn_log("regroups");
+ game.attacker[game.where] = null;
game.where = null;
clear_undo();
game.active = game.battle_active;
delete game.battle_active;
if (game.battle_reason === 'herald') {
delete game.battle_reason;
+ game.last_used = {};
end_player_turn();
} else if (game.battle_reason === 'pillage') {
delete game.battle_reason;
+ game.last_used = {};
end_player_turn();
} else if (game.battle_reason === 'coronation') {
delete game.battle_reason;
+ game.last_used = {};
resume_coronation();
} else {
delete game.battle_reason;