Files
wagic/projects/mtg/bin/Res/test/misc01.txt
Psyyringe ba460dfcf3 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.
2009-11-10 05:50:11 +00:00

46 lines
1.0 KiB
Plaintext

#NAME: Misc1
#DESC: This script tests the following complex
#DESC: bug report: "I attacked the AI with a
#DESC: wilt-leaf cavaliers pumped with might of
#DESC: oaks, and it blocked with a wall of bone
#DESC: juiced with bad moon. It tapped black to
#DESC: regenerate the wall (which was enchanted
#DESC: with my psychic venom) and lost 2 life.
#DESC: the wall never regenerated and the mana
#DESC: burned the AI. After the damage resolved
#DESC: The game went on to the AI's untap phase
#DESC: and crashed the psp."
[INIT]
firstmain
[PLAYER1]
inplay:Wilt-Leaf Cavaliers
hand:Might of Oaks,Psychic Venom
manapool:{G}{G}{G}{G}{U}{U}
[PLAYER2]
inplay:Wall of Bone,Bad Moon,Swamp
[DO]
Psychic Venom
Swamp
Might of Oaks
Wilt-Leaf Cavaliers
next
next
Wilt-Leaf Cavaliers
next
Swamp
Wall of Bone
choice 1
Wall of Bone
choice 0
next
next
[ASSERT]
combatend
[PLAYER1]
inplay:Wilt-Leaf Cavaliers,Psychic Venom
graveyard:Might of Oaks
[PLAYER2]
inplay:Wall of Bone,Bad Moon,Swamp
life:18
[END]