浏览代码

Hire despite hero present

Only if both the garrison and the outside of a town are blocked are hires of heros being blocked.
Xilmi 1 年之前
父节点
当前提交
71504a3140
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AI/Nullkiller/Behaviors/RecruitHeroBehavior.cpp

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

@@ -67,7 +67,7 @@ Goals::TGoalVec RecruitHeroBehavior::decompose(const Nullkiller * ai) const
 			closestThreat = std::min(closestThreat, threat.turn);
 		}
 		//Don't hire a hero where there already is one present
-		if (town->visitingHero || town->garrisonHero)
+		if (town->visitingHero && town->garrisonHero)
 			continue;
 		float visitability = 0;
 		for (auto checkHero : ourHeroes)