added moverandom(tc) from(zone) to(zone) ability...example
moverandom(creature[green]) from(mygraveyard) to(opponentbattlefield)
example card
[card]
name=Tariel, Reckoner of Souls
auto={t}:moverandom(creature) from(opponentgraveyard) to(mybattlefield)
mana={4}{W}{B}{R}
abilities=Flying,vigilance
type=Legendary Creature
subtype=Angel
power=4
toughness=7
text=Flying, vigilance {T}: Choose a creature card at random from target opponent's graveyard. Put that card onto the battlefield under your control.
[/card]
This commit is contained in:
@@ -1744,7 +1744,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
target = card;
|
||||
|
||||
MTGAbility * a = NEW AAMover(observer, id, card, target, splitMove[1]);
|
||||
a->oneShot = 1;
|
||||
a->oneShot = true;
|
||||
if(s.find("and(") != string::npos)
|
||||
{
|
||||
vector<string> splitAnd = parseBetween(s, "and((", " ))",false);
|
||||
@@ -1756,6 +1756,19 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
return a;
|
||||
}
|
||||
|
||||
//random mover
|
||||
vector<string> splitRandomMove = parseBetween(s, "moverandom(", ")");
|
||||
if (splitRandomMove.size())
|
||||
{
|
||||
vector<string> splitfrom = parseBetween(splitRandomMove[2], "from(", ")");
|
||||
vector<string> splitto = parseBetween(splitRandomMove[2], "to(", ")");
|
||||
if(!splitfrom.size() || !splitto.size())
|
||||
return NULL;
|
||||
MTGAbility * a = NEW AARandomMover(observer, id, card, target, splitRandomMove[1],splitfrom[1],splitto[1]);
|
||||
a->oneShot = true;
|
||||
return a;
|
||||
}
|
||||
|
||||
//Copy a target
|
||||
found = s.find("copy");
|
||||
if (found != string::npos)
|
||||
|
||||
Reference in New Issue
Block a user