Browse Source

Update AINodeStorage.cpp

The node of a disembark-action can no longer be part of a hero-chain since sea-to-land-trade isn't possible and landing first eats up all movement-points.
Xilmi 1 year ago
parent
commit
1495ec56f6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      AI/Nullkiller/Pathfinding/AINodeStorage.cpp

+ 1 - 0
AI/Nullkiller/Pathfinding/AINodeStorage.cpp

@@ -721,6 +721,7 @@ void HeroChainCalculationTask::calculateHeroChain(
 		if(node->action == EPathNodeAction::BATTLE
 		if(node->action == EPathNodeAction::BATTLE
 			|| node->action == EPathNodeAction::TELEPORT_BATTLE
 			|| node->action == EPathNodeAction::TELEPORT_BATTLE
 			|| node->action == EPathNodeAction::TELEPORT_NORMAL
 			|| node->action == EPathNodeAction::TELEPORT_NORMAL
+			|| node->action == EPathNodeAction::DISEMBARK
 			|| node->action == EPathNodeAction::TELEPORT_BLOCKING_VISIT)
 			|| node->action == EPathNodeAction::TELEPORT_BLOCKING_VISIT)
 		{
 		{
 			continue;
 			continue;