mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +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);
|
||||
}
|
||||
|
||||
// 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
|
||||
for(auto & hero : campaignHeroReplacements)
|
||||
{
|
||||
|
Reference in New Issue
Block a user