Psyringe - added test suite scripts for i169 - i175, Added several non-bug scripts. Replaced symbiotic_wurm.txt - it now tests token generation after the wurm has been killed. Removed description mentioning Akron Legionnaires which had nothing to do with the rest of the script. Renamed volcanic_island.txt to volcanic_eruption.txt since the script actually has nothing to do with Volcanic Island, updated in-script description as well. Corrected erroneous "endinterrupt" command in three scripts to "endinterruption".

(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.
This commit is contained in:
Psyyringe
2009-11-10 05:50:11 +00:00
parent 7121958efa
commit ba460dfcf3
22 changed files with 596 additions and 13 deletions

View File

@@ -0,0 +1,31 @@
#NAME: Ability Stacking
#DESC: Auras/effects that add an ability /
#DESC: remove it don't correctly stack.
#DESC: Example: casting Pacifism on a Blind-
#DESC: Spot Giant, then having a giant coming
#DESC: into play, will have the BSG ignore
#DESC: the Pacifism.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=175
[INIT]
firstmain
[PLAYER1]
inplay:Blind-Spot Giant
hand:Pacifism,Axegrinder Giant
manapool:{W}{W}{R}{R}{R}{R}{R}{R}
[PLAYER2]
[DO]
Pacifism
Blind-Spot Giant
Axegrinder Giant
next
next
Blind-Spot Giant
next
next
next
[ASSERT]
combatend
[PLAYER1]
inplay:Blind-Spot Giant,Pacifism,Axegrinder Giant
[PLAYER2]
[END]

View File

@@ -0,0 +1,26 @@
#NAME: Crystal Rod
#DESC: Checks whether Crystal Rod can
#DESC: correctly give 1 life
#DESC: See http://code.google.com/p/wagic/issues/detail?id=172
[INIT]
firstmain
[PLAYER1]
hand:Air Elemental
manapool:{U}{U}{U}{U}{U}
[PLAYER2]
inplay:Crystal Rod,Island
[DO]
Air Elemental
no
yes
Island
Crystal Rod
endinterruption
[ASSERT]
firstmain
[PLAYER1]
inplay:Air Elemental
[PLAYER2]
inplay:Crystal Rod,Island
life:21
[END]

View File

@@ -0,0 +1,49 @@
#NAME: Dragon Whelp
#DESC: Dragon Whelp should be destroyed at
#DESC: end of turn if its pumping ability was
#DESC: used at least 4 times this turn, but
#DESC: should survive otherwise
#DESC: The script first tests "safe" pumping x3,
#DESC: then tests "lethal" pumping x4.
[INIT]
firstmain
[PLAYER1]
inplay:Dragon Whelp,129649,129650,129651,129652
library:Forest
manapool:{R}{R}{R}
[PLAYER2]
library:Plains
[DO]
Dragon Whelp
Dragon Whelp
Dragon Whelp
next
next
Dragon Whelp
eot
eot
next
next
next
129649
129650
129651
129652
Dragon Whelp
Dragon Whelp
Dragon Whelp
Dragon Whelp
next
next
Dragon Whelp
eot
[ASSERT]
untap
[PLAYER1]
inplay:129649,129650,129651,129652
hand:Forest
graveyard:Dragon Whelp
[PLAYER2]
hand:Plains
life:9
[END]

View File

@@ -0,0 +1,42 @@
#NAME: Erg Raiders
#DESC: Erg Raiders was reported not to deal
#DESC: damage to its owner when it didn't attack.
#DESC: See: http://code.google.com/p/wagic/issues/detail?id=157
#DESC:
[INIT]
firstmain
[PLAYER1]
library:Swamp,Mountain
hand:Erg Raiders
manapool:{1}{B}
[PLAYER2]
library:Plains,Island
[DO]
# Cast Erg Raiders. Should do NO damage since
# it came under this player's control in this turn.
Erg Raiders
eot
eot
# Do nothing with Erg Raiders in turn 2. Now
# it should deal damage to its controller.
eot
eot
# Attack with Erg raiders in turn 3. Now it
# should deal NO damage to its controller.
next
next
next
next
next
Erg Raiders
eot
[ASSERT]
untap
[PLAYER1]
inplay:Erg Raiders
hand:Swamp,Mountain
life:18
[PLAYER2]
hand:Plains,Island
life:18
[END]

View File

@@ -0,0 +1,15 @@
[INIT]
firstmain
[PLAYER1]
inplay:Windswept Heath,Wooded Foothills
library:Forest,Island,Mountain,Plains,Swamp
[PLAYER2]
[DO]
# human
Windswept Heath
Plains
human
[ASSERT]
[PLAYER1]
[PLAYER2]
[END]

View File

@@ -0,0 +1,67 @@
#NAME: Living Artifact
#DESC: I checked an old bug list entry claiming that
#DESC: Living Artifact "gives you one life whenever
#DESC: a card is tapped". I couldn't reproduce that.
#DESC: However, I couldn't produce *any* effect from
#DESC: Living Artifact either.
#DESC: The script first tests for the condition of
#DESC: the bug report mentioned above, then tries to
#DESC: activate Living Artifact when it should be
#DESC: possible. The Assert part may need tweaking
#DESC: since I have no way of knowing how Living
#DESC: Artifact is assumed to be activated correctly.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=169
[INIT]
firstmain
[PLAYER1]
inplay:Forest,Sol Ring,Craw Wurm
hand:Living Artifact
library:Plains
manapool:{G}
[PLAYER2]
inplay:Grizzly Bears
library:Swamp,Mountain
[DO]
Living Artifact
Sol Ring
next
next
# Try a couple of things that should NOT put
# counters on Living Artifact
Forest
Sol Ring
Craw Wurm
eot
# 2nd player does nothing:
eot
# 1st player tries to use Living Artifact. This should
# have NO effect at this stage.
next
Living Artifact
eot
# 2nd player attacks:
next
next
next
next
next
Grizzly Bears
eot
# 1st player tries to use Living Artifact. This should
# work now since he has sustained damage
next
Living Artifact
[ASSERT]
upkeep
[PLAYER1]
inplay:Forest,Sol Ring,Craw Wurm,Living Artifact
hand:Plains
library:
life:19
manapool:
[PLAYER2]
inplay:Grizzly Bears
hand:Swamp,Mountain
library:
life:14
[END]

View File

@@ -0,0 +1,51 @@
#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]

View File

@@ -0,0 +1,31 @@
#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]