summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index e159ecd..b80440a 100644
--- a/rules.js
+++ b/rules.js
@@ -1769,11 +1769,13 @@ states.move = {
space(s) {
push_undo();
let old = game.pieces[game.selected];
- if (game.selected < 36)
+ game.pieces[game.selected] = s;
+ if (game.selected < 36) {
logi(`${player.loyalty} army from ${region_names[old]} to ${region_names[s]}.`);
- else
+ } else {
logi(`Tribe from ${region_names[old]} to ${region_names[s]}.`);
- game.pieces[game.selected] = s;
+ check_region_overthrow(game.active, old);
+ }
game.selected = -1;
if (--game.count === 0)
end_action();