(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.
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
#NAME: Soul Net
|
|
#DESC: Soul Net was reported to be unusable
|
|
#DESC: in the opponent's turn. Research revealed
|
|
#DESC: that it currently isn't usable at all.
|
|
#DESC: The script has player 0 sacrifice a Mogg
|
|
#DESC: Fanatic to kill a Savannah Lions, and
|
|
#DESC: then try to gain 1 Life for each of the
|
|
#DESC: two creatures through Soul Net. Then the
|
|
#DESC: opponent sacrifices a Thrull, and player 0
|
|
#DESC: tries to use Soul Net again.
|
|
#DESC: The script may need adapting, I can't be
|
|
#DESC: sure how Soul Net is supposed to work, so
|
|
#DESC: I had to guess.
|
|
#DESC: See http://code.google.com/p/wagic/issues/detail?id=171
|
|
[INIT]
|
|
secondmain
|
|
[PLAYER1]
|
|
inplay:Soul Net,Mogg Fanatic,Mountain
|
|
manapool:{R}{R}
|
|
[PLAYER2]
|
|
inplay:Basal Thrull,Savannah Lions
|
|
library:Swamp
|
|
[DO]
|
|
Mogg Fanatic
|
|
Savannah Lions
|
|
yes
|
|
Soul Net
|
|
Soul Net
|
|
endinterruption
|
|
no
|
|
eot
|
|
next
|
|
next
|
|
next
|
|
Basal Thrull
|
|
no
|
|
yes
|
|
Mountain
|
|
Soul Net
|
|
endinterruption
|
|
[ASSERT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Soul Net,Mountain
|
|
graveyard:Mogg Fanatic
|
|
life:23
|
|
[PLAYER2]
|
|
hand:Swamp
|
|
graveyard:Basal Thrull,Savannah Lions
|
|
manapool:{B}{B}
|
|
[END]
|