If original movement rules are on, it is not possible to attack guards

from visitable object directly
This commit is contained in:
Ivan Savenko committed 2024-05-23 19:01:30 +00:00
1 parent ef29c47408
commit d7f5d24b99
1 file changed
+3
+3
View File
@@ -267,6 +267,9 @@ PathfinderBlockingRule::BlockingReason MovementAfterDestinationRule::getBlocking
return BlockingReason::DESTINATION_BLOCKED;
case EPathNodeAction::BATTLE:
if (config->options.originalFlyRules && destination.nodeObject && source.node->layer == EPathfindingLayer::AIR)
return BlockingReason::DESTINATION_BLOCKED;
/// Movement after BATTLE action only possible from guarded tile to guardian tile
if(destination.guarded)
{