1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

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

This commit is contained in:
Andrii Danylchenko 2022-11-10 21:10:34 +02:00
parent c5cf0e4086
commit 3676152644

View File

@ -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,