Skip to content

Commit

Permalink
Allow landing on guarded tiles when flying in from guarded tile
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSavenko committed May 23, 2024
1 parent 3fdbc09 commit f7989f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pathfinder/PathfindingRules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ PathfinderBlockingRule::BlockingReason MovementToDestinationRule::getBlockingRea

if(source.guarded)
{
if(!(pathfinderConfig->options.originalFlyRules && source.node->layer == EPathfindingLayer::AIR)
if(source.node->layer != EPathfindingLayer::AIR
&& !pathfinderConfig->options.ignoreGuards
&& (!destination.isGuardianTile || pathfinderHelper->getGuardiansCount(source.coord) > 1)) // Can step into tile of guard
{
Expand Down

0 comments on commit f7989f6

Please sign in to comment.