From d0efeaef7e3f97841c67b8c8dca47a1a497f4fc7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 11 Apr 2022 21:39:58 +0200 Subject: Don't remove forts u/c until after any eventual battles. --- rules.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index ff0b83b..d9b0c38 100644 --- a/rules.js +++ b/rules.js @@ -3495,6 +3495,9 @@ function end_move_step(final=false, overrun=false) { delete game.battle; game.move.did_attempt_intercept = 0; // reset flag for next move step + if (force_has_drilled_troops(who)) + remove_enemy_forts_uc_in_path(where); + if (final) stop_move(); @@ -3657,12 +3660,6 @@ function gen_intercept() { } function goto_intercept() { - let who = moving_piece(); - - let here = moving_piece_space(); - if (force_has_drilled_troops(who)) - remove_enemy_forts_uc_in_path(here); - if (can_be_intercepted()) { game.move.intercepting = 0; clear_undo(); -- cgit v1.2.3