diff --git a/AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp b/AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp index fd87347a6..ef4811ab7 100644 --- a/AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp +++ b/AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp @@ -97,6 +97,10 @@ Goals::TGoalVec RecruitHeroBehavior::decompose(const Nullkiller * ai) const for(auto hero : availableHeroes) { + if ((town->visitingHero || town->garrisonHero) + && closestThreat < 0 + && hero->getArmyCost() < GameConstants::HERO_GOLD_COST / 3.0) + continue; auto score = ai->heroManager->evaluateHero(hero); if(score > minScoreToHireMain) {