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