Limitations: - Operators for "greater than", "less than", "unequal" have not been implemented, but if a card actually needs them, you can use a preceding minus sign to negate a comparison. Example: -power=3 means "power not equal to 3", -toughness<=3 means "toughness>3". - You can't use spaces when specifying such restrictions. Write "power<=3" instead of "power <= 3" - You now need to use a space before the "<" and ">" commands that count the matches for lord(), foreach(), all() and aslongas(). So far we always did use spaces in front of them without actually needing to, now we need to. - manacost restrictions don't take "X" costs into account. Example: Mistmeadow Skulkin (FUT) has protection from manacost>=3. Blaze has a converted manacost of 1, but when you cast it with an X of 2, then it actually has a converted manacost of 3 while on the stack, and Mistmeadow Skulkin would be protected from it, but currently it isn't. Please review the code, I'll add a few remarks/questions of my own.
29 lines
624 B
Plaintext
29 lines
624 B
Plaintext
#NAME: Aegis of the Meek
|
|
#DESC: "{1}{T}: Target 1/1 creature
|
|
#DESC: gets +1/+2 until end of turn."
|
|
#DESC: Test tries some illegal targets
|
|
#DESC: before settling on a legal one.
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Aegis of the Meek,Raging Goblin,Steppe Lynx,Savannah Lions,Courier Hawk
|
|
hand:Swords to Plowshares
|
|
manapool:{W}{W}
|
|
[PLAYER2]
|
|
[DO]
|
|
Aegis of the Meek
|
|
Steppe Lynx
|
|
Savannah Lions
|
|
Courier Hawk
|
|
Raging Goblin
|
|
Swords to Plowshares
|
|
Raging Goblin
|
|
[ASSERT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Aegis of the Meek,Steppe Lynx,Savannah Lions,Courier Hawk
|
|
graveyard:Swords to Plowshares
|
|
life:22
|
|
[PLAYER2]
|
|
[END]
|