1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Update AIGateway.cpp

This commit is contained in:
val-gaav 2022-04-25 14:13:41 +02:00 committed by Andrii Danylchenko
parent fa9a420f99
commit 7466839182

View File

@ -1022,6 +1022,8 @@ bool AIGateway::canRecruitAnyHero(const CGTownInstance * t) const
return false;
if(cb->getHeroesInfo().size() >= ALLOWED_ROAMING_HEROES)
return false;
if(cb->getHeroesInfo().size() >= VLC->modh->settings.MAX_HEROES_ON_MAP_PER_PLAYER)
return false;
if(!cb->getAvailableHeroes(t).size())
return false;