1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Reveal terrain around newly recruited hero to account for Scouting

This commit is contained in:
Ivan Savenko
2024-05-10 16:48:20 +00:00
parent 119c9a8fb4
commit 19f2fbce1e

View File

@@ -246,6 +246,9 @@ bool HeroPoolProcessor::hireHero(const ObjectInstanceID & objectID, const HeroTy
gameHandler->visitCastleObjects(town, recruitedHero);
gameHandler->giveSpells(town, recruitedHero);
}
// If new hero has scouting he might reveal more terrain than we saw before
gameHandler->changeFogOfWar(recruitedHero->getSightCenter(), recruitedHero->getSightRadius(), player, ETileVisibility::REVEALED);
return true;
}