mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix Solmyr/Yog receiving spellbook on transferring to next scenario
This commit is contained in:
@@ -197,6 +197,10 @@ void CGameStateCampaign::trimCrossoverHeroesParameters(vstd::RNG & randomGenerat
|
|||||||
hero.hero->eraseStack(slotID);
|
hero.hero->eraseStack(slotID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add spell flag to ensure that hero without spellbook won't receive one as part of initHero call
|
||||||
|
for(auto & hero : campaignHeroReplacements)
|
||||||
|
hero.hero->addSpellToSpellbook(SpellID::SPELLBOOK_PRESET);
|
||||||
|
|
||||||
// Removing short-term bonuses
|
// Removing short-term bonuses
|
||||||
for(auto & hero : campaignHeroReplacements)
|
for(auto & hero : campaignHeroReplacements)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user