summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-06 22:59:12 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-06 22:59:12 +0200
commit2b1eaf95c116ce95751b44912e0c0e804bbcbce8 (patch)
tree94e3293ecf20e26de401c8edb2117998d51391a7
parent7506b1708bd660cd4f2943327a2e0641bbd58559 (diff)
downloadrichard-iii-2b1eaf95c116ce95751b44912e0c0e804bbcbce8.tar.gz
Fix bug with mandatory retreat.
-rw-r--r--rules.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index e71b2cd..07553c1 100644
--- a/rules.js
+++ b/rules.js
@@ -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)
},
}