summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-25 17:40:45 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commit983044ccaf8b179f499ca600fddca518be393fa8 (patch)
tree7e8d86c1875cb4562e4f084ef93dcac61ea01a02
parent41561dfa2df32dc1cc34018d6401fe2990145c5c (diff)
downloadhammer-of-the-scots-983044ccaf8b179f499ca600fddca518be393fa8.tar.gz
hammer: Fix retreat bug with Norse in area.
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index c93998d..7931757 100644
--- a/rules.js
+++ b/rules.js
@@ -433,9 +433,9 @@ function can_block_retreat_to(who, to) {
}
function can_block_retreat(who) {
- if (who == NORSE)
- return true;
if (block_owner(who) == game.active) {
+ if (who == NORSE)
+ return true;
let from = game.location[who];
for (let to of AREAS[from].exits)
if (can_block_retreat_to(who, to))