Browse Source

Update VCAI.cpp

val-gaav 3 years ago
parent
commit
8baa97acd3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      AI/VCAI/VCAI.cpp

+ 2 - 0
AI/VCAI/VCAI.cpp

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