diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-03-30 22:33:47 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | d185f039efddc22786f620a0b47ad31846aaa577 (patch) | |
tree | 7219341e7b83eaf991748092fd5b99a10d177b4d | |
parent | 5f7bcd6ecacc73a064bf762eed96557aa6acc877 (diff) | |
download | wilderness-war-d185f039efddc22786f620a0b47ad31846aaa577.tar.gz |
Don't delete "removed" too soon when retreating attacker.
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5241,7 +5241,6 @@ states.retreat_attacker = { space() { let from = game.retreat.from; let to = game.retreat.to; - delete game.retreat; // NOTE: Besieged pieces that sortie out are 'inside' so not affected by the code below. init_retreat_summary(); @@ -5278,10 +5277,12 @@ function end_retreat_attacker(to) { // space, unless they retreat to join other raiders if (!game.raid.from[to]) game.raid.from[to] = game.retreat.from; + delete game.retreat; return goto_pick_raid(); } // Normal battle + delete game.retreat; end_retreat(); } @@ -9314,7 +9315,7 @@ exports.setup = function (seed, scenario, options) { } if (game.options.no_foul_weather) { - log(`${card_name(FOUL_WEATHER)} removed.`); + log(`"Foul Weather" removed.`); remove_from_array(game.deck, FOUL_WEATHER); game.removed.push(FOUL_WEATHER); } |