1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Merge pull request #3180 from IvanSavenko/bugfixing

Fixes for miscellaneous accumulated issues
This commit is contained in:
Ivan Savenko
2023-11-13 16:26:33 +02:00
committed by GitHub
14 changed files with 55 additions and 22 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