Ver Fonte

Hire despite hero present

Only if both the garrison and the outside of a town are blocked are hires of heros being blocked.
Xilmi há 1 ano atrás
pai
commit
71504a3140
1 ficheiros alterados com 1 adições e 1 exclusões
  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)