From d7f5d24b99f00dde0ab7c1b2c894654c039f8888 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 23 May 2024 18:46:48 +0000 Subject: [PATCH] If original movement rules are on, it is not possible to attack guards from visitable object directly --- lib/pathfinder/PathfindingRules.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pathfinder/PathfindingRules.cpp b/lib/pathfinder/PathfindingRules.cpp index 25df74964..c95c83875 100644 --- a/lib/pathfinder/PathfindingRules.cpp +++ b/lib/pathfinder/PathfindingRules.cpp @@ -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) {