浏览代码

Update RecruitHeroBehavior.cpp

closestThreat was supposed to be < 1, not < 0
Xilmi 10 月之前
父节点
当前提交
64ad060846
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

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

@@ -98,7 +98,7 @@ Goals::TGoalVec RecruitHeroBehavior::decompose(const Nullkiller * ai) const
 			for(auto hero : availableHeroes)
 			for(auto hero : availableHeroes)
 			{
 			{
 				if ((town->visitingHero || town->garrisonHero) 
 				if ((town->visitingHero || town->garrisonHero) 
-					&& closestThreat < 0
+					&& closestThreat < 1
 					&& hero->getArmyCost() < GameConstants::HERO_GOLD_COST / 3.0)
 					&& hero->getArmyCost() < GameConstants::HERO_GOLD_COST / 3.0)
 					continue;
 					continue;
 				auto score = ai->heroManager->evaluateHero(hero);
 				auto score = ai->heroManager->evaluateHero(hero);