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:
parent
fb1a6b734f
commit
48ec21f648
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user