1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Update VCAI.cpp

This commit is contained in:
val-gaav 2022-04-26 11:13:12 +02:00 committed by Andrii Danylchenko
parent 7466839182
commit 8baa97acd3

View File

@ -1317,6 +1317,8 @@ bool VCAI::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;