add custom name for generic reveal

This commit is contained in:
Anthony Calosa
2016-08-29 20:58:55 +08:00
parent 9671711bf5
commit f957fca162
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -49,6 +49,7 @@ GenericRevealAbility::GenericRevealAbility(GameObserver* observer, int id, MTGCa
ActivatedAbility(observer, id, source, NULL), howMany(_howMany)
{
this->GetId();
named = "";
}
int GenericRevealAbility::resolve()
@@ -60,6 +61,8 @@ int GenericRevealAbility::resolve()
const string GenericRevealAbility::getMenuText()
{
if(named.size())
return named.c_str();
return "Reveal Cards";
}
+1
View File
@@ -3486,6 +3486,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
GenericRevealAbility * a = NEW GenericRevealAbility(observer, id, card, target, backup);
a->oneShot = 1;
a->canBeInterrupted = false;
a->named = newName;
return a;
}