From 988d149cea871afaefb24ab20bc6c72a74bd691b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Sep 2023 19:41:23 +0200 Subject: Fix regroup check for Norse block. --- rules.js | 6 ++++++ 1 file changed, 6 insertions(+) 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)) -- cgit v1.2.3