1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Fix behavior for hero bought in town tavern

This commit is contained in:
nordsoft
2023-05-02 04:44:09 +04:00
parent 18efde3b02
commit c4cf2a100b
6 changed files with 128 additions and 90 deletions

View File

@@ -4440,10 +4440,9 @@ bool CGameHandler::hireHero(const CGObjectInstance *obj, ui8 hid, PlayerColor pl
giveResource(player, EGameResID::GOLD, -GameConstants::HERO_GOLD_COST);
if (t)
if(t)
{
visitCastleObjects(t, nh);
giveSpells (t,nh);
objectVisited(t, nh);
}
return true;
}