summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-05 18:02:03 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commitc4a3a1f5a0d48b33c1c33adb37a996273b6daf5f (patch)
tree79b4093371e46e416ce8de9bc3dd2b3555872e9e
parent24058bfbe40bf02385460cf899b7564d47d9eec0 (diff)
downloadcrusader-rex-c4a3a1f5a0d48b33c1c33adb37a996273b6daf5f.tar.gz
When placing a drawn block into a besieged port, make sure it goes inside.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 41d1551..cf1b276 100644
--- a/rules.js
+++ b/rules.js
@@ -3353,6 +3353,8 @@ states.draw_phase = {
game.steps[game.who] = 1;
} else {
game.steps[game.who] = block_max_steps(game.who);
+ if (can_enter_besieged_port(where))
+ game.castle.push(game.who);
}
game.who = null;