1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Automatically activate scholar skill on visiting town

This commit is contained in:
Ivan Savenko 2024-01-15 22:29:08 +02:00
parent c21913f661
commit 4735ad8299

View File

@ -1467,6 +1467,9 @@ void CGameHandler::heroVisitCastle(const CGTownInstance * obj, const CGHeroInsta
sendAndApply(&vc);
visitCastleObjects(obj, hero);
giveSpells (obj, hero);
if (obj->visitingHero && obj->garrisonHero)
useScholarSkill(obj->visitingHero->id, obj->garrisonHero->id);
checkVictoryLossConditionsForPlayer(hero->tempOwner); //transported artifact?
}