ba460dfcf3
(I actually spent half an hour fiddling with my first interruption script, because the tutorial on the blog doesn't mention the any command to end interrupt sequences. Then I checked the "Counterspell" script, was happy to find the "endinterrupt" keyword, and fiddled for another 30 minutes with it before I found out that this keyword is actually wrong and the parser doesn't understand it at all, it just so happens that the Counterspell script (and two others) work nevertheless because in these scripts the interruption doesn't need to end. I wholeheartedly agree with the passage in wololo's mail in which he says that we could use a "real" test suite tutorial / reference.
43 lines
804 B
Plaintext
43 lines
804 B
Plaintext
#NAME: Erg Raiders
|
|
#DESC: Erg Raiders was reported not to deal
|
|
#DESC: damage to its owner when it didn't attack.
|
|
#DESC: See: http://code.google.com/p/wagic/issues/detail?id=157
|
|
#DESC:
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
library:Swamp,Mountain
|
|
hand:Erg Raiders
|
|
manapool:{1}{B}
|
|
[PLAYER2]
|
|
library:Plains,Island
|
|
[DO]
|
|
# Cast Erg Raiders. Should do NO damage since
|
|
# it came under this player's control in this turn.
|
|
Erg Raiders
|
|
eot
|
|
eot
|
|
# Do nothing with Erg Raiders in turn 2. Now
|
|
# it should deal damage to its controller.
|
|
eot
|
|
eot
|
|
# Attack with Erg raiders in turn 3. Now it
|
|
# should deal NO damage to its controller.
|
|
next
|
|
next
|
|
next
|
|
next
|
|
next
|
|
Erg Raiders
|
|
eot
|
|
[ASSERT]
|
|
untap
|
|
[PLAYER1]
|
|
inplay:Erg Raiders
|
|
hand:Swamp,Mountain
|
|
life:18
|
|
[PLAYER2]
|
|
hand:Plains,Island
|
|
life:18
|
|
[END]
|