1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

NKAI: loosen gold presure on build system.

This commit is contained in:
Andrii Danylchenko
2023-07-29 18:54:20 +03:00
parent 6490c65490
commit fb7477047a
7 changed files with 18 additions and 11 deletions

View File

@@ -236,7 +236,7 @@ const CGHeroInstance * HeroManager::findWeakHeroToDismiss(uint64_t armyLimit) co
for(auto existingHero : myHeroes)
{
if(ai->isHeroLocked(existingHero)
if(ai->isHeroLocked(existingHero) && ai->getHeroLockedReason(existingHero) == HeroLockedReason::DEFENCE
|| existingHero->getArmyStrength() >armyLimit
|| getHeroRole(existingHero) == HeroRole::MAIN
|| existingHero->movementPointsRemaining()