Browse Source

Update PriorityEvaluator.cpp

Removed workaround that was likely necessitated by other issues.
Xilmi 1 year ago
parent
commit
8d93c0c9c9
1 changed files with 0 additions and 3 deletions
  1. 0 3
      AI/Nullkiller/Engine/PriorityEvaluator.cpp

+ 0 - 3
AI/Nullkiller/Engine/PriorityEvaluator.cpp

@@ -1401,9 +1401,6 @@ float PriorityEvaluator::evaluate(Goals::TSubgoal task, int priorityTier)
 			}
 			case PriorityTier::KILL: //Take towns / kill heroes that are further away
 			{
-				//TODO: This is a workaround for duplicating the same capture town-task being given to several heroes. A better solution ought to be found.
-				if (evaluationContext.movementCostByRole[HeroRole::MAIN] == 0)
-					return 0;
 				if (evaluationContext.turn > 0 && evaluationContext.isHero)
 					return 0;
 				if (arriveNextWeek && evaluationContext.isEnemy)