added imprintedcard as a usable name for castcard

This commit is contained in:
zethfoxster
2016-07-09 20:20:55 -04:00
parent fdde5b7fe9
commit c4581a8889
2 changed files with 13 additions and 3 deletions

View File

@@ -7189,6 +7189,13 @@ void AACastCard::Update(float dt)
return;
if(cardNamed.size() && !theNamedCard)
{
if (cardNamed.find("imprintedcard") != string::npos)
{
if (source && source->currentimprintName.size())
{
cardNamed = source->currentimprintName;
}
}
theNamedCard = makeCard();
}
if(putinplay)

View File

@@ -2503,9 +2503,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
found = s.find("imprint");
if (found != string::npos)
{
MTGAbility * a = NEW AAImprint(observer, id, card, target);
a->oneShot = 1;
return a;
if (s.find("imprintedcard") == string::npos)
{
MTGAbility * a = NEW AAImprint(observer, id, card, target);
a->oneShot = 1;
return a;
}
}
//phaseout