1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1121 from vcmi/nk-fix-hung

#1102 - NKAI: one more freeze - no mains with strong army
This commit is contained in:
Andrii Danylchenko
2022-11-13 09:56:39 +02:00
committed by GitHub

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,