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:
@ -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
|
||||
|
Reference in New Issue
Block a user