Explorar el Código

Do not allow attacking from inaccessible tiles

Ivan Savenko hace 2 años
padre
commit
48ec21f648
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 		else if(destination.node->accessible != CGPathNode::ACCESSIBLE)
 		{
 		{
 			/// Hero that fly can only land on accessible tiles
 			/// Hero that fly can only land on accessible tiles
-			if(!destination.isGuardianTile && destination.nodeObject)
+			if(destination.nodeObject)
 				destination.blocked = true;
 				destination.blocked = true;
 		}
 		}