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.
50 lines
783 B
Plaintext
50 lines
783 B
Plaintext
#NAME: Dragon Whelp
|
|
#DESC: Dragon Whelp should be destroyed at
|
|
#DESC: end of turn if its pumping ability was
|
|
#DESC: used at least 4 times this turn, but
|
|
#DESC: should survive otherwise
|
|
#DESC: The script first tests "safe" pumping x3,
|
|
#DESC: then tests "lethal" pumping x4.
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Dragon Whelp,129649,129650,129651,129652
|
|
library:Forest
|
|
manapool:{R}{R}{R}
|
|
[PLAYER2]
|
|
library:Plains
|
|
[DO]
|
|
Dragon Whelp
|
|
Dragon Whelp
|
|
Dragon Whelp
|
|
next
|
|
next
|
|
Dragon Whelp
|
|
eot
|
|
eot
|
|
next
|
|
next
|
|
next
|
|
129649
|
|
129650
|
|
129651
|
|
129652
|
|
Dragon Whelp
|
|
Dragon Whelp
|
|
Dragon Whelp
|
|
Dragon Whelp
|
|
next
|
|
next
|
|
Dragon Whelp
|
|
eot
|
|
[ASSERT]
|
|
untap
|
|
[PLAYER1]
|
|
inplay:129649,129650,129651,129652
|
|
hand:Forest
|
|
graveyard:Dragon Whelp
|
|
[PLAYER2]
|
|
hand:Plains
|
|
life:9
|
|
[END]
|