added imprintedcard as a usable name for castcard
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user