(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.
24 lines
467 B
Plaintext
24 lines
467 B
Plaintext
#NAME: Windswept Heath life cost
|
|
#DESC: Onslaught lands were reported not to
|
|
#DESC: collect on the "1 life" payment
|
|
#DESC: The script shows that 1 life is
|
|
#DESC: correctly deducted.
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Windswept Heath
|
|
library:Forest,Plains,Mountain,Swamp,Island
|
|
[PLAYER2]
|
|
[DO]
|
|
Windswept Heath
|
|
Plains
|
|
[ASSERT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Plains
|
|
library:Forest,Mountain,Swamp,Island
|
|
graveyard:Windswept Heath
|
|
life:19
|
|
[PLAYER2]
|
|
[END]
|