1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #1989 from SoundSSGood/refactoring-arts-p1

Artifact related code refactoring part1 (initial)
This commit is contained in:
Ivan Savenko
2023-04-19 15:31:11 +03:00
committed by GitHub
8 changed files with 82 additions and 76 deletions

View File

@@ -1288,7 +1288,7 @@ void CGArtifact::onHeroVisit(const CGHeroInstance * h) const
break;
case Obj::SPELL_SCROLL:
{
int spellID = storedArtifact->getGivenSpellID();
int spellID = storedArtifact->getScrollSpellID();
iw.components.emplace_back(Component::EComponentType::SPELL, spellID, 0, 0);
if(message.length())
iw.text << message;