diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-31 00:58:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:17 +0100 |
commit | 4e8a669a912b853b5fe294b19fceab9f28800781 (patch) | |
tree | 7ee5d526d878e349a699b3341403636592e8197c | |
parent | 398a10a5c7896097ca9bb98505f639e4a3538f58 (diff) | |
download | hammer-of-the-scots-4e8a669a912b853b5fe294b19fceab9f28800781.tar.gz |
hammer: Reset last-used border state after defection battle regroups.
-rw-r--r-- | rules.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |