Parcourir la source

Lowered restrictions from hero-hiring.

Removed two restrictions from hero-hiring, that prevented AI from hiring heros in certain scenarios.
Xilmi il y a 1 an
Parent
commit
9c6d8762c5
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

+ 0 - 3
AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

@@ -83,9 +83,6 @@ Goals::TGoalVec RecruitHeroBehavior::decompose(const Nullkiller * ai) const
 				}
 			}
 
-			if(treasureSourcesCount < 5 && (town->garrisonHero || town->getUpperArmy()->getArmyStrength() < 10000))
-				continue;
-
 			if(ai->cb->getHeroesInfo().size() < ai->cb->getTownsInfo().size() + 1
 				|| (ai->getFreeResources()[EGameResID::GOLD] > 10000 && !ai->buildAnalyzer->isGoldPressureHigh()))
 			{