summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-08 19:41:23 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-08 19:41:23 +0200
commit988d149cea871afaefb24ab20bc6c72a74bd691b (patch)
tree2328c06398989718a28e76bae2a250c9dc0a8f87
parentc46094fa3d4a8979e0385c66ba7f093b5f7e0176 (diff)
downloadhammer-of-the-scots-988d149cea871afaefb24ab20bc6c72a74bd691b.tar.gz
Fix regroup check for Norse block.
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 529ff84..305b705 100644
--- a/rules.js
+++ b/rules.js
@@ -557,6 +557,12 @@ function can_block_regroup_to(who, to) {
function can_block_regroup(who) {
if (block_owner(who) === game.active) {
+ if (who === B_NORSE) {
+ for (let to = first_map_area; to < area_count; ++to)
+ if (to !== game.where && to !== AREA_ENGLAND && is_friendly_coastal_area(to))
+ return true
+ return false
+ }
let from = game.location[who]
for (let to of AREAS[from].exits)
if (can_block_regroup_to(who, to))