(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.
40 lines
734 B
Plaintext
40 lines
734 B
Plaintext
#NAME: Master Decoy
|
|
#DESC: Master Decoy was reported to be unable
|
|
#DESC: of tapping artifact creatures.
|
|
#DESC: The script shows that Master Decoy
|
|
#DESC: can tap an artifact.
|
|
[INIT]
|
|
combatbegin
|
|
# combatattackers
|
|
# combatblockers
|
|
# combatdamage
|
|
# combatend
|
|
# secondmain
|
|
# endofturn
|
|
# cleanup
|
|
[PLAYER1]
|
|
inplay:Master Decoy,Tundra Wolves
|
|
manapool:{W}
|
|
[PLAYER2]
|
|
inplay:Obsianus Golem
|
|
[DO]
|
|
Master Decoy
|
|
Obsianus Golem
|
|
next
|
|
Tundra Wolves
|
|
# 2nd player now tries to block with Obsianus Golem.
|
|
# If Master Decoy worked correctly, then this should
|
|
# not be possible.
|
|
next
|
|
Obsianus Golem
|
|
next
|
|
next
|
|
[ASSERT]
|
|
combatend
|
|
[PLAYER1]
|
|
inplay:Master Decoy,Tundra Wolves
|
|
[PLAYER2]
|
|
inplay:Obsianus Golem
|
|
life:19
|
|
[END]
|