浏览代码

Do not allow attacking from inaccessible tiles

Ivan Savenko 2 年之前
父节点
当前提交
48ec21f648
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/CPathfinder.cpp

+ 1 - 1
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;
 		}