Ver código fonte

NKAI: fix heroes not recruited

Andrii Danylchenko 2 anos atrás
pai
commit
1eabb738dc
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

+ 1 - 1
AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

@@ -84,7 +84,7 @@ Goals::TGoalVec RecruitHeroBehavior::decompose() const
 				}
 			}
 
-			if(treasureSourcesCount < 5)
+			if(treasureSourcesCount < 5 && (town->garrisonHero || town->getUpperArmy()->getArmyStrength() < 10000))
 				continue;
 
 			if(cb->getHeroesInfo().size() < cb->getTownsInfo().size() + 1