diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-04-11 21:39:58 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | d0efeaef7e3f97841c67b8c8dca47a1a497f4fc7 (patch) | |
tree | a4812ad47501aab75725dda757435720fc45ab27 /rules.js | |
parent | 3665e99918aed9b2a76fa94efe470966958f60aa (diff) | |
download | wilderness-war-d0efeaef7e3f97841c67b8c8dca47a1a497f4fc7.tar.gz |
Don't remove forts u/c until after any eventual battles.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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(); |