1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Do not ban heroes in Prisons, they might be rehired after they are defeated.

Restore hero to pool if Prison fails to be placed.
This commit is contained in:
Tomasz Zieliński
2024-01-15 07:41:29 +01:00
parent ee6c331bad
commit 285bafdbf4
6 changed files with 12 additions and 21 deletions

View File

@@ -509,17 +509,6 @@ void CMapGenerator::banQuestArt(const ArtifactID & id)
map->getMap(this).allowedArtifact.erase(id);
}
void CMapGenerator::banHero(const HeroTypeID & id)
{
map->getMap(this).banHero(id);
}
void CMapGenerator::unbanHero(const HeroTypeID & id)
{
map->getMap(this).unbanHero(id);
}
Zone * CMapGenerator::getZoneWater() const
{
for(auto & z : map->getZones())