(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.
28 lines
362 B
Plaintext
28 lines
362 B
Plaintext
#NAME: Vampiric Link
|
|
#DESC: Testing whether Vampiric Link
|
|
#DESC: gives life.
|
|
[INIT]
|
|
FIRSTMAIN
|
|
[PLAYER1]
|
|
hand:Vampiric Link
|
|
inplay:Grizzly Bears
|
|
manapool:{B}
|
|
[PLAYER2]
|
|
[DO]
|
|
Vampiric Link
|
|
Grizzly Bears
|
|
next
|
|
next
|
|
Grizzly Bears
|
|
next
|
|
next
|
|
next
|
|
[ASSERT]
|
|
combatend
|
|
[PLAYER1]
|
|
inplay:Grizzly Bears,Vampiric Link
|
|
life:22
|
|
[PLAYER2]
|
|
life:18
|
|
[END]
|