diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-08 19:41:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-09-08 19:41:23 +0200 |
commit | 988d149cea871afaefb24ab20bc6c72a74bd691b (patch) | |
tree | 2328c06398989718a28e76bae2a250c9dc0a8f87 | |
parent | c46094fa3d4a8979e0385c66ba7f093b5f7e0176 (diff) | |
download | hammer-of-the-scots-988d149cea871afaefb24ab20bc6c72a74bd691b.tar.gz |
Fix regroup check for Norse block.
-rw-r--r-- | rules.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)) |