Psyringe - added test scripts for issues i176 - i182. Again added some more scripts that were written to verify bug reports (but where the card behaved correctly).

This commit is contained in:
Psyyringe
2009-11-12 17:29:00 +00:00
parent ce0051e545
commit d7f4cb66ad
12 changed files with 389 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#NAME: Dream Fracture
#DESC: Dream fracture has a Counterspell effect
#DESC: and should also allow the caster and the
#DESC: target controller to draw one card each.
#DESC: Current bug: The caster draws two cards,
#DESC: the target controller none.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=142
[INIT]
firstmain
[PLAYER1]
hand:Grizzly Bears
library:Forest,Craw Wurm
manapool:{G}{G}
[PLAYER2]
hand:Dream Fracture
library:Swamp,Air Elemental
manapool:{U}{U}{U}
[DO]
Grizzly Bears
no
yes
Dream Fracture
Grizzly Bears
endinterruption
[ASSERT]
firstmain
[PLAYER1]
hand:Forest
graveyard:Grizzly Bears
library:Craw Wurm
[PLAYER2]
hand:Swamp
graveyard:Dream Fracture
library:Air Elemental
[END]

View File

@@ -0,0 +1,37 @@
#NAME: Ray of Command in opponent's turn
#DESC: Bug report: Ray of command is unable
#DESC: to take control of a creature if cast
#DESC: in the opponent's turn.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=176
[INIT]
firstmain
[PLAYER1]
inplay:Boa Constrictor
hand:Lightning Elemental
manapool:{R}{R}{R}{R}
[PLAYER2]
hand:Ray of Command
manapool:{U}{U}{U}{U}
[DO]
Boa Constrictor
Lightning Elemental
no
yes
Ray of Command
Boa Constrictor
endinterruption
next
next
Lightning Elemental
next
Boa Constrictor
choice 0
eot
[ASSERT]
untap
[PLAYER1]
inplay:Boa Constrictor
graveyard:Lightning Elemental
[PLAYER2]
graveyard:Ray of Command
[END]

View File

@@ -0,0 +1,28 @@
#NAME: Shield of the Ages
#DESC: Shield of the Ages was hardcoded and
#DESC: probably depended on damage going on
#DESC: the stack. Since this (correctly) doesn't
#DESC: happen any more, SotA has no effect.
#DESC: However, something else must also be
#DESC: going wrong, since SotA wants me to
#DESC: specify a target. It shouldn't.
[INIT]
firstmain
[PLAYER1]
inplay:Shield of the Ages
hand:Shock
manapool:{R}{R}{R}
[PLAYER2]
[DO]
human
Shield of the Ages
Shock
p1
[ASSERT]
firstmain
[PLAYER1]
inplay:Shield of the Ages
graveyard:Shock
life:19
[PLAYER2]
[END]

View File

@@ -0,0 +1,49 @@
#NAME: Sylvan Basilisk
#DESC: Sylvan Basilisk should *only* destroy
#DESC: creatures blocking it (not creatures
#DESC: blocked *by* it), and it should destroy
#DESC: these at the end of the "Declare Blockers"
#DESC: step, so it never takes any damage from
#DESC: them. Nevertheless it should not deal
#DESC: damage to the opponent if it had been
#DESC: blocked at some point (unless it has
#DESC: Trample).
#DESC: In the script, the Sylvan Basilisk blocks
#DESC: a Giant Spider (which should survive),
#DESC: then gets blocked by Gosta Dirk (who
#DESC: should be destroyed without having a
#DESC: chance to kill the Sylvan Basilisk), and
#DESC: then the Sylvan Basilisk should not deal
#DESC: any damage to player 0.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=182
[INIT]
combatattackers
[PLAYER1]
inplay:Giant Spider,Gosta Dirk
[PLAYER2]
inplay:Sylvan Basilisk
library:Forest
[DO]
Giant Spider
next
Sylvan Basilisk
eot
next
next
next
next
next
Sylvan Basilisk
next
Gosta Dirk
next
next
[ASSERT]
combatend
[PLAYER1]
inplay:Giant Spider
graveyard:Gosta Dirk
[PLAYER2]
inplay:Sylvan Basilisk
hand:Forest
[END]

View File

@@ -0,0 +1,35 @@
#NAME: Triggers at movedTo ...
#DESC: Trigers like this one:
#DESC: auto=@movedTo(creature|battlefield):life:1
#DESC: should trigger when a creature gets summoned,
#DESC: but not when its controller changes.
#DESC: The script tests this on Soul Warden.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=179
[INIT]
firstmain
[PLAYER1]
hand:Soul Warden,Persuasion,Raging Goblin,Boomerang
manapool:{W}{R}{U}{U}{U}{U}{U}{U}{U}
[PLAYER2]
inplay:Grizzly Bears
[DO]
# Soul Warden should NOT trigger upon itself:
Soul Warden
# Soul Warden SHOULD trigger upon summoning another creature:
Raging Goblin
# Soul Warden should NOT trigger upon controller change:
Persuasion
Grizzly Bears
# Soul Warden should NOT trigger upon controller change:
Boomerang
Persuasion
[ASSERT]
firstmain
[PLAYER1]
inplay:Soul Warden,Raging Goblin
hand:Persuasion
graveyard:Boomerang
life:21
[PLAYER2]
inplay:Grizzly Bears
[END]