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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user