summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-31 00:58:38 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commit4e8a669a912b853b5fe294b19fceab9f28800781 (patch)
tree7ee5d526d878e349a699b3341403636592e8197c
parent398a10a5c7896097ca9bb98505f639e4a3538f58 (diff)
downloadhammer-of-the-scots-4e8a669a912b853b5fe294b19fceab9f28800781.tar.gz
hammer: Reset last-used border state after defection battle regroups.
-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;