1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix tooltip for spell scrolls on adventure map

This commit is contained in:
Ivan Savenko
2023-11-13 00:08:14 +02:00
parent 35ee8c1397
commit 9c9127be7d
2 changed files with 7 additions and 3 deletions

View File

@ -779,7 +779,8 @@ std::string CGArtifact::getPopupText(PlayerColor player) const
if (settings["general"]["enableUiEnhancements"].Bool())
{
std::string description = VLC->artifacts()->getById(getArtifact())->getDescriptionTranslated();
ArtifactUtils::insertScrrollSpellName(description, SpellID::NONE); // erase text placeholder
if (getArtifact() == ArtifactID::SPELL_SCROLL)
ArtifactUtils::insertScrrollSpellName(description, SpellID::NONE); // erase text placeholder
return description;
}
else