- Added 242 successfully tested cards based on rev2444 (Card list --> First comment).
- Optimized 163 cards (Card list --> First comment). Most of them profit from the much more detailed combat trigger system and the new types of damage prevention. - Added 17 tests to save Zethfox's additions for the future. - Fixed issue182.
This commit is contained in:
26
projects/mtg/bin/Res/test/generic/@attacking.txt
Normal file
26
projects/mtg/bin/Res/test/generic/@attacking.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
#Testing "@attacking" trigger with Bramble Creeper.
|
||||
#"Whenever Bramble Creeper attacks, it gets +5/+0 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Bramble Creeper
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Bramble Creeper
|
||||
next
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:Bramble Creeper
|
||||
[PLAYER2]
|
||||
life:15
|
||||
[END]
|
||||
28
projects/mtg/bin/Res/test/generic/@blocked.txt
Normal file
28
projects/mtg/bin/Res/test/generic/@blocked.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
#Testing "@blocking" trigger with Brushwagg.
|
||||
#"Whenever Brushwagg blocks or becomes blocked, it gets -2/+2 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Hill Giant
|
||||
[PLAYER2]
|
||||
inplay:Brushwagg
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Hill Giant
|
||||
next
|
||||
Brushwagg
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
graveyard:Hill Giant
|
||||
[PLAYER2]
|
||||
inplay:Brushwagg
|
||||
[END]
|
||||
28
projects/mtg/bin/Res/test/generic/@blocking.txt
Normal file
28
projects/mtg/bin/Res/test/generic/@blocking.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
#Testing "@blocking" trigger with Brushwagg.
|
||||
#"Whenever Brushwagg blocks or becomes blocked, it gets -2/+2 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Brushwagg
|
||||
[PLAYER2]
|
||||
inplay:Hill Giant
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Brushwagg
|
||||
next
|
||||
Hill Giant
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:Brushwagg
|
||||
[PLAYER2]
|
||||
graveyard:Hill Giant
|
||||
[END]
|
||||
30
projects/mtg/bin/Res/test/generic/@combatdamaged_1.txt
Normal file
30
projects/mtg/bin/Res/test/generic/@combatdamaged_1.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
#Testing "@combatdamage" trigger with Coastal Piracy.
|
||||
#"Whenever a creature you control deals combat damage to an opponent, you may draw a card."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
library:counterspell
|
||||
hand:lightning bolt
|
||||
inplay:coastal piracy,grizzly bears
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
grizzly bears
|
||||
next
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
choice 0
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
hand:lightning bolt,counterspell
|
||||
inplay:coastal piracy,grizzly bears
|
||||
[PLAYER2]
|
||||
life:18
|
||||
[END]
|
||||
31
projects/mtg/bin/Res/test/generic/@combatdamaged_2.txt
Normal file
31
projects/mtg/bin/Res/test/generic/@combatdamaged_2.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
#Testing "@combatdamage" trigger.
|
||||
#Prodigal Sorcerer's damage should not let Coastal Piracy trigger, even if activated during combat.
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
library:counterspell
|
||||
hand:lightning bolt
|
||||
inplay:coastal piracy,prodigal sorcerer
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
next
|
||||
#blockers
|
||||
prodigal sorcerer
|
||||
p2
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
ENDOFTURN
|
||||
[PLAYER1]
|
||||
library:counterspell
|
||||
hand:lightning bolt
|
||||
inplay:coastal piracy,prodigal sorcerer
|
||||
[PLAYER2]
|
||||
life:19
|
||||
[END]
|
||||
24
projects/mtg/bin/Res/test/generic/@drawn.txt
Normal file
24
projects/mtg/bin/Res/test/generic/@drawn.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
#Testing "@drawn" trigger with Underworld Dreams.
|
||||
#"Whenever an opponent draws a card, Underworld Dreams deals 1 damage to him or her."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:oona's grace
|
||||
inplay:underworld dreams
|
||||
manapool:{2}{U}
|
||||
[PLAYER2]
|
||||
library:counterspell
|
||||
life:20
|
||||
[DO]
|
||||
oona's grace
|
||||
p2
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:underworld dreams
|
||||
graveyard:oona's grace
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
hand:counterspell
|
||||
life:19
|
||||
[END]
|
||||
32
projects/mtg/bin/Res/test/generic/@noncombatdamaged.txt
Normal file
32
projects/mtg/bin/Res/test/generic/@noncombatdamaged.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
#Testing "@noncombatdamaged" trigger.
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:lightning bolt
|
||||
inplay:chandra's spitfire
|
||||
manapool:{R}
|
||||
[PLAYER2]
|
||||
life:20
|
||||
[DO]
|
||||
lightning bolt
|
||||
p2
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
chandra's spitfire
|
||||
next
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
next
|
||||
[ASSERT]
|
||||
SECONDMAIN
|
||||
[PLAYER1]
|
||||
inplay:chandra's spitfire
|
||||
graveyard:lightning bolt
|
||||
[PLAYER2]
|
||||
life:13
|
||||
[END]
|
||||
33
projects/mtg/bin/Res/test/generic/@untapped.txt
Normal file
33
projects/mtg/bin/Res/test/generic/@untapped.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
#Testing "@untapped" trigger.
|
||||
#"Whenever a permanent you control becomes untapped, Wake Thrasher gets +1/+1 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:thundermare,vitalize
|
||||
inplay:wake thrasher,grizzly bears,elvish berserker
|
||||
manapool:{5}{R}{G}
|
||||
[PLAYER2]
|
||||
life:20
|
||||
[DO]
|
||||
thundermare
|
||||
vitalize
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
wake thrasher
|
||||
next
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
next
|
||||
[ASSERT]
|
||||
SECONDMAIN
|
||||
[PLAYER1]
|
||||
inplay:wake thrasher,grizzly bears,elvish berserker,thundermare
|
||||
graveyard:vitalize
|
||||
[PLAYER2]
|
||||
life:16
|
||||
[END]
|
||||
28
projects/mtg/bin/Res/test/generic/bushido_1.txt
Normal file
28
projects/mtg/bin/Res/test/generic/bushido_1.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
#Testing the "becomes blocked"-part of the ability "bushido" with Devoted Retainer.
|
||||
#"When this blocks or becomes blocked, it gets +1/+1 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Devoted Retainer
|
||||
[PLAYER2]
|
||||
inplay:Raging Goblin
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Devoted Retainer
|
||||
next
|
||||
Raging Goblin
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:Devoted Retainer
|
||||
[PLAYER2]
|
||||
graveyard:Raging Goblin
|
||||
[END]
|
||||
28
projects/mtg/bin/Res/test/generic/bushido_2.txt
Normal file
28
projects/mtg/bin/Res/test/generic/bushido_2.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
#Testing the "blocks"-part of the ability "bushido" with Devoted Retainer.
|
||||
#"When this blocks or becomes blocked, it gets +1/+1 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Raging Goblin
|
||||
[PLAYER2]
|
||||
inplay:Devoted Retainer
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Raging Goblin
|
||||
next
|
||||
Devoted Retainer
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
graveyard:Raging Goblin
|
||||
[PLAYER2]
|
||||
inplay:Devoted Retainer
|
||||
[END]
|
||||
28
projects/mtg/bin/Res/test/generic/flanking.txt
Normal file
28
projects/mtg/bin/Res/test/generic/flanking.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
#Testing ability "flanking" with Mtenda Herder.
|
||||
#"Whenever a creature without flanking blocks this creature, the blocking creature gets -1/-1 until end of turn."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Mtenda Herder
|
||||
[PLAYER2]
|
||||
inplay:Raging Goblin
|
||||
[DO]
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Mtenda Herder
|
||||
next
|
||||
#blockers
|
||||
Raging Goblin
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
SECONDMAIN
|
||||
[PLAYER1]
|
||||
inplay:Mtenda Herder
|
||||
[PLAYER2]
|
||||
graveyard:Raging Goblin
|
||||
[END]
|
||||
20
projects/mtg/bin/Res/test/generic/fresh.txt
Normal file
20
projects/mtg/bin/Res/test/generic/fresh.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#Testing "fresh" with Caller of the Claw.
|
||||
When Caller of the Claw enters the battlefield, put a 2/2 green Bear creature token onto the battlefield for each nontoken creature put into your graveyard from the battlefield this turn.
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Wrath of God,Caller of the Claw
|
||||
inplay:Grizzly Bears,Llanowar Elves
|
||||
graveyard:Serra Angel,Runeclaw Bear
|
||||
manapool:{4}{W}{W}{G}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Wrath of God
|
||||
Caller of the Claw
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Caller of the Claw,*,*
|
||||
graveyard:Wrath of God,Grizzly Bears,Llanowar Elves,Serra Angel,Runeclaw Bear
|
||||
[PLAYER2]
|
||||
[END]
|
||||
37
projects/mtg/bin/Res/test/generic/preventalldamage.txt
Normal file
37
projects/mtg/bin/Res/test/generic/preventalldamage.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
#Testing "preventalldamage" with Bubble Matrix.
|
||||
Prevent all damage that would be dealt to creatures.
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Pyroclasm,Lightning Bolt
|
||||
inplay:Bubble Matrix,Grizzly Bears,Llanowar Elves
|
||||
manapool:{1}{R}{R}
|
||||
[PLAYER2]
|
||||
life:20
|
||||
inplay:Runeclaw Bear
|
||||
[DO]
|
||||
pyroclasm
|
||||
lightning bolt
|
||||
p2
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Grizzly Bears
|
||||
next
|
||||
Runeclaw Bear
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
next
|
||||
[ASSERT]
|
||||
SECONDMAIN
|
||||
[PLAYER1]
|
||||
inplay:Bubble Matrix,Grizzly Bears,Llanowar Elves
|
||||
graveyard:Pyroclasm,Lightning Bolt
|
||||
[PLAYER2]
|
||||
life:17
|
||||
inplay:Runeclaw Bear
|
||||
[END]
|
||||
29
projects/mtg/bin/Res/test/generic/sunburst.txt
Normal file
29
projects/mtg/bin/Res/test/generic/sunburst.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
#Testing ability "sunburst" with Arcbound Wanderer.
|
||||
#"This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it."
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Arcbound Wanderer
|
||||
inplay:Fervor
|
||||
manapool:{1}{W}{U}{B}{R}{G}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Arcbound Wanderer
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
Arcbound Wanderer
|
||||
next
|
||||
#blockers
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:Arcbound Wanderer,Fervor
|
||||
[PLAYER2]
|
||||
life:15
|
||||
[END]
|
||||
Reference in New Issue
Block a user