mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Automatically activate scholar skill on visiting town
This commit is contained in:
@ -1467,6 +1467,9 @@ void CGameHandler::heroVisitCastle(const CGTownInstance * obj, const CGHeroInsta
|
|||||||
sendAndApply(&vc);
|
sendAndApply(&vc);
|
||||||
visitCastleObjects(obj, hero);
|
visitCastleObjects(obj, hero);
|
||||||
giveSpells (obj, hero);
|
giveSpells (obj, hero);
|
||||||
|
|
||||||
|
if (obj->visitingHero && obj->garrisonHero)
|
||||||
|
useScholarSkill(obj->visitingHero->id, obj->garrisonHero->id);
|
||||||
checkVictoryLossConditionsForPlayer(hero->tempOwner); //transported artifact?
|
checkVictoryLossConditionsForPlayer(hero->tempOwner); //transported artifact?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user