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:
committed by
ArseniyShestakov
parent
5d022ba77c
commit
035d279ae8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user