mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +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:
@@ -57,8 +57,7 @@ Goals::TGoalVec BuyArmyBehavior::decompose() const
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ai->nullkiller->heroManager->getHeroRole(targetHero) == HeroRole::MAIN
|
if(ai->nullkiller->heroManager->getHeroRole(targetHero) == HeroRole::MAIN)
|
||||||
&& targetHero->getArmyStrength() >= 300)
|
|
||||||
{
|
{
|
||||||
auto reinforcement = ai->nullkiller->armyManager->howManyReinforcementsCanGet(
|
auto reinforcement = ai->nullkiller->armyManager->howManyReinforcementsCanGet(
|
||||||
targetHero,
|
targetHero,
|
||||||
|
Reference in New Issue
Block a user