If original movement rules are on, it is not possible to attack guards
from visitable object directly
This commit is contained in:
1 parent
ef29c47408
commit
d7f5d24b99
1 file changed
+3
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user