1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Do not show whether Witch Hut is visited by hero, if was not visited by player yet, fixes #2604 (#304)

This commit is contained in:
Piotr 2017-06-01 22:36:46 +02:00 committed by ArseniyShestakov
parent c66c66c5ae
commit 9d5d291e6b

View File

@ -1477,7 +1477,7 @@ std::string CGWitchHut::getHoverText(PlayerColor player) const
std::string CGWitchHut::getHoverText(const CGHeroInstance * hero) const std::string CGWitchHut::getHoverText(const CGHeroInstance * hero) const
{ {
std::string hoverName = getHoverText(hero->tempOwner); std::string hoverName = getHoverText(hero->tempOwner);
if(hero->getSecSkillLevel(SecondarySkill(ability))) //hero knows that ability if(wasVisited(hero->tempOwner) && hero->getSecSkillLevel(SecondarySkill(ability))) //hero knows that ability
hoverName += "\n\n" + VLC->generaltexth->allTexts[357]; // (Already learned) hoverName += "\n\n" + VLC->generaltexth->allTexts[357]; // (Already learned)
return hoverName; return hoverName;
} }