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