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
+7
View File
@@ -7189,6 +7189,13 @@ void AACastCard::Update(float dt)
return; return;
if(cardNamed.size() && !theNamedCard) if(cardNamed.size() && !theNamedCard)
{ {
if (cardNamed.find("imprintedcard") != string::npos)
{
if (source && source->currentimprintName.size())
{
cardNamed = source->currentimprintName;
}
}
theNamedCard = makeCard(); theNamedCard = makeCard();
} }
if(putinplay) if(putinplay)
+6 -3
View File
@@ -2503,9 +2503,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
found = s.find("imprint"); found = s.find("imprint");
if (found != string::npos) if (found != string::npos)
{ {
MTGAbility * a = NEW AAImprint(observer, id, card, target); if (s.find("imprintedcard") == string::npos)
a->oneShot = 1; {
return a; MTGAbility * a = NEW AAImprint(observer, id, card, target);
a->oneShot = 1;
return a;
}
} }
//phaseout //phaseout