mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
If original movement rules are on, it is not possible to attack guards
from visitable object directly
This commit is contained in:
@@ -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