1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Refactor CGHeroInstance, make spells private

This commit is contained in:
Andrii Danylchenko
2018-12-20 23:42:31 +02:00
committed by ArseniyShestakov
parent 5d022ba77c
commit 035d279ae8
12 changed files with 64 additions and 41 deletions

View File

@@ -140,10 +140,10 @@ DLL_LINKAGE void ChangeSpells::applyGs(CGameState *gs)
if(learn)
for(auto sid : spells)
hero->spells.insert(sid);
hero->addSpellToSpellbook(sid);
else
for(auto sid : spells)
hero->spells.erase(sid);
hero->removeSpellFromSpellbook(sid);
}
DLL_LINKAGE void SetMana::applyGs(CGameState *gs)