diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-06 22:59:12 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-06 22:59:12 +0200 |
commit | 2b1eaf95c116ce95751b44912e0c0e804bbcbce8 (patch) | |
tree | 94e3293ecf20e26de401c8edb2117998d51391a7 | |
parent | 7506b1708bd660cd4f2943327a2e0641bbd58559 (diff) | |
download | richard-iii-2b1eaf95c116ce95751b44912e0c0e804bbcbce8.tar.gz |
Fix bug with mandatory retreat.
-rw-r--r-- | rules.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3,7 +3,7 @@ // TODO: execute enemy heirs during supply phase // TODO: reuse supply and goes-home states for pretender and king -// TODO: tweak block layout and positioning +// TODO: mulligan rule exports.scenarios = [ "Wars of the Roses", @@ -2473,9 +2473,10 @@ states.battle_round = { fire_with_block(who) else if (can_retreat_with_block(who)) retreat_with_block(who) - else if (must_retreat_with_block(who)) + else if (must_retreat_with_block(who)) { eliminate_block(who) - else + resume_battle() + } else pass_with_block(who) }, } |