1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Do not allow attacking from inaccessible tiles

This commit is contained in:
Ivan Savenko 2022-12-08 16:14:33 +02:00
parent fb1a6b734f
commit 48ec21f648

View File

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