From 48ec21f648a9c4b9adf709e16c7089142d637660 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 8 Dec 2022 16:14:33 +0200 Subject: [PATCH] Do not allow attacking from inaccessible tiles --- lib/CPathfinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CPathfinder.cpp b/lib/CPathfinder.cpp index 0d131f59e..e0c32210a 100644 --- a/lib/CPathfinder.cpp +++ b/lib/CPathfinder.cpp @@ -625,7 +625,7 @@ void LayerTransitionRule::process( else if(destination.node->accessible != CGPathNode::ACCESSIBLE) { /// Hero that fly can only land on accessible tiles - if(!destination.isGuardianTile && destination.nodeObject) + if(destination.nodeObject) destination.blocked = true; }