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)
+3
View File
@@ -2502,11 +2502,14 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
//imprint //imprint
found = s.find("imprint"); found = s.find("imprint");
if (found != string::npos) if (found != string::npos)
{
if (s.find("imprintedcard") == string::npos)
{ {
MTGAbility * a = NEW AAImprint(observer, id, card, target); MTGAbility * a = NEW AAImprint(observer, id, card, target);
a->oneShot = 1; a->oneShot = 1;
return a; return a;
} }
}
//phaseout //phaseout
found = s.find("phaseout"); found = s.find("phaseout");