1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-03 14:52:11 +02:00

Hire despite hero present

Only if both the garrison and the outside of a town are blocked are hires of heros being blocked.
This commit is contained in:
Xilmi 2024-09-23 17:25:17 +02:00
parent 20f7751e16
commit 71504a3140

View File

@ -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)