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.
32 lines
572 B
Plaintext
32 lines
572 B
Plaintext
#NAME: Spirit Link on opponent's creatures
|
|
#DESC: Spirit Link should give Life to the
|
|
#DESC: controller of Spirit Link, not to the
|
|
#DESC: controller of the enchanted creature.
|
|
#DESC: See http://code.google.com/p/wagic/issues/detail?id=173
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Armored Pegasus
|
|
hand:Spirit Link
|
|
manapool:{W}
|
|
[PLAYER2]
|
|
inplay:Courier Hawk
|
|
[DO]
|
|
Spirit Link
|
|
Courier Hawk
|
|
next
|
|
next
|
|
Armored Pegasus
|
|
next
|
|
Courier Hawk
|
|
next
|
|
next
|
|
[ASSERT]
|
|
combatend
|
|
[PLAYER1]
|
|
inplay:Armored Pegasus,Spirit Link
|
|
life:21
|
|
[PLAYER2]
|
|
inplay:Courier Hawk
|
|
[END]
|