mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
HMI for spell research
This commit is contained in:
@@ -2273,8 +2273,6 @@ bool CGameHandler::spellResearch(ObjectInstanceID tid, SpellID spellAtSlot)
|
||||
|
||||
giveResources(t->getOwner(), -cost);
|
||||
|
||||
t->lastSpellResearchDay = gs->getDate(Date::DAY);
|
||||
|
||||
auto spells = t->spells.at(level);
|
||||
|
||||
std::swap(spells.at(t->spellsAtLevel(level, false)), spells.at(vstd::find_pos(spells, spellAtSlot)));
|
||||
|
||||
Reference in New Issue
Block a user