1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1218 from IvanSavenko/pathfinder_fix

[1.1] Do not allow attacking from inaccessible tiles
This commit is contained in:
Andrii Danylchenko
2022-12-10 15:19:55 +02:00
committed by GitHub

View File

@@ -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;
} }