Explorar o código

#1102 - NKAI: one more freeze - no mains with strong army

Andrii Danylchenko %!s(int64=3) %!d(string=hai) anos
pai
achega
3676152644
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      AI/Nullkiller/Behaviors/BuyArmyBehavior.cpp

+ 1 - 2
AI/Nullkiller/Behaviors/BuyArmyBehavior.cpp

@@ -57,8 +57,7 @@ Goals::TGoalVec BuyArmyBehavior::decompose() const
 				continue;
 			}
 
-			if(ai->nullkiller->heroManager->getHeroRole(targetHero) == HeroRole::MAIN
-				&& targetHero->getArmyStrength() >= 300)
+			if(ai->nullkiller->heroManager->getHeroRole(targetHero) == HeroRole::MAIN)
 			{
 				auto reinforcement = ai->nullkiller->armyManager->howManyReinforcementsCanGet(
 					targetHero,