2 example cards:
[card]
name=Decree of Justice
auto=token(Angel,Creature Angel,4/4,flying,white)*XX
autohand={2}{W}:cycling
autohand={X}{W}:name(cycle and soldier tokens) && cycling && thisforeach(X) token(Soldier,Creature Soldier,1/1,white)*X
text=Put X 4/4 white Angel creature tokens with flying onto the battlefield. -- Cycling {2}{W} ({2}{W}, Discard this card: Draw a card.) -- When you cycle Decree of Justice, you may pay {X}. If you do, put X 1/1 white Soldier creature tokens onto the battlefield.
mana={X}{X}{2}{W}{W}
type=Sorcery
[/card]
[card]
name=Stormbind
auto={2}{D}:damage:2 target(creature,player)
text={2}, Discard a card at random: Stormbind deals 2 damage to target creature or player.
mana={1}{R}{G}
type=Enchantment
[/card]
Added 2 tests for the keywords introduced in rev2272.
Corrected several card bugs.
18 lines
273 B
Plaintext
18 lines
273 B
Plaintext
Testing Decree of Justice (--> {X}{X} as cost)
|
|
[INIT]
|
|
FIRSTMAIN
|
|
[PLAYER1]
|
|
hand:Decree of Justice
|
|
manapool:{8}{W}{W}
|
|
[PLAYER2]
|
|
[DO]
|
|
Decree of Justice
|
|
choice 0
|
|
[ASSERT]
|
|
FIRSTMAIN
|
|
[PLAYER1]
|
|
manapool:{0}
|
|
inplay:*,*,*
|
|
graveyard:Decree of Justice
|
|
[PLAYER2]
|
|
[END] |