mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
Update RecruitHeroBehavior.cpp
closestThreat was supposed to be < 1, not < 0
This commit is contained in:
@@ -98,7 +98,7 @@ Goals::TGoalVec RecruitHeroBehavior::decompose(const Nullkiller * ai) const
|
||||
for(auto hero : availableHeroes)
|
||||
{
|
||||
if ((town->visitingHero || town->garrisonHero)
|
||||
&& closestThreat < 0
|
||||
&& closestThreat < 1
|
||||
&& hero->getArmyCost() < GameConstants::HERO_GOLD_COST / 3.0)
|
||||
continue;
|
||||
auto score = ai->heroManager->evaluateHero(hero);
|
||||
|
Reference in New Issue
Block a user