Ver código fonte

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 ano atrás
pai
commit
1495ec56f6
1 arquivos alterados com 1 adições e 0 exclusões
  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
 			|| node->action == EPathNodeAction::TELEPORT_BATTLE
 			|| node->action == EPathNodeAction::TELEPORT_NORMAL
+			|| node->action == EPathNodeAction::DISEMBARK
 			|| node->action == EPathNodeAction::TELEPORT_BLOCKING_VISIT)
 		{
 			continue;