Erwan
- Updated Parser mechanism. Right now this doesn't change functionalities much, but should be more readable, and make it easier to code some new abilities in the future - Fixed regenerate, broken with r532 - Death Ward now works - I think "&&" now works with all abilities, needs to be tested...
This commit is contained in:
@@ -13,6 +13,8 @@ generic/legendary.txt
|
||||
generic/lifelink.txt
|
||||
generic/persist.txt
|
||||
generic/persist2.txt
|
||||
generic/rampage.txt
|
||||
generic/regenerate.txt
|
||||
generic/sacrifice.txt
|
||||
generic/wither.txt
|
||||
########################
|
||||
@@ -22,6 +24,7 @@ afflict.txt
|
||||
akron_legionnaire.txt
|
||||
Amugaba.txt
|
||||
anarchy.txt
|
||||
ancestors_chosen.txt
|
||||
animate_dead.txt
|
||||
animate_dead2.txt
|
||||
animate_dead3.txt
|
||||
@@ -57,6 +60,7 @@ counterspell3.txt
|
||||
counterspell4.txt
|
||||
creature_bond.txt
|
||||
dauthi_embrace.txt
|
||||
death_ward.txt
|
||||
deja_vu.txt
|
||||
dingus_egg.txt
|
||||
doomed_necromancer.txt
|
||||
@@ -76,12 +80,14 @@ fountain_of_youth.txt
|
||||
ghost_warden.txt
|
||||
giant_growth.txt
|
||||
giant_growth2.txt
|
||||
glimpse_the_unthinkable.txt
|
||||
goblin_balloon_brigade.txt
|
||||
goblin_balloon_brigade2.txt
|
||||
goblin_king.txt
|
||||
gravedigger.txt
|
||||
#hammerfist_giant.txt
|
||||
hannas_custody.txt
|
||||
howl_of_the_night_pack.txt
|
||||
hymn_of_rebirth.txt
|
||||
icatian_priest.txt
|
||||
keldon_warlord.txt
|
||||
@@ -95,6 +101,8 @@ living_lands.txt
|
||||
lord_of_the_pit.txt
|
||||
lord_of_the_pit2.txt
|
||||
master_of_etherium.txt
|
||||
millstone.txt
|
||||
mind_rot.txt
|
||||
nantuko_husk.txt
|
||||
Nevinyrrals_Disk.txt
|
||||
Nevinyrrals_Disk2.txt
|
||||
@@ -118,8 +126,10 @@ siege_gang_commander.txt
|
||||
shivan_hellkite.txt
|
||||
shock.txt
|
||||
sphinx_summoner.txt
|
||||
spitting_earth.txt
|
||||
spark_elemental.txt
|
||||
spirit_link.txt
|
||||
spoils_of_evil.txt
|
||||
stasis.txt
|
||||
steelclad_serpent1.txt
|
||||
steelclad_serpent2.txt
|
||||
|
||||
21
projects/mtg/bin/Res/test/ancestors_chosen.txt
Normal file
21
projects/mtg/bin/Res/test/ancestors_chosen.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
#Testing Ancestors chosen
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Ancestor's chosen
|
||||
graveyard:swamp,grizzly bears,dragon engine
|
||||
manapool:{5}{W}{W}
|
||||
[PLAYER2]
|
||||
graveyard:black knight
|
||||
[DO]
|
||||
Ancestor's chosen
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Ancestor's chosen
|
||||
life:23
|
||||
graveyard:swamp,grizzly bears,dragon engine
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
graveyard:black knight
|
||||
[END]
|
||||
26
projects/mtg/bin/Res/test/death_ward.txt
Normal file
26
projects/mtg/bin/Res/test/death_ward.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
#Testing Regenerate (Death Ward)
|
||||
[INIT]
|
||||
COMBATATTACKERS
|
||||
[PLAYER1]
|
||||
hand:Death Ward
|
||||
manapool:{W}
|
||||
inplay:raging goblin
|
||||
[PLAYER2]
|
||||
inplay:grizzly bears
|
||||
[DO]
|
||||
Death Ward
|
||||
raging goblin
|
||||
raging goblin
|
||||
next
|
||||
grizzly bears
|
||||
next
|
||||
next
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:raging goblin
|
||||
graveyard:Death Ward
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
inplay:grizzly bears
|
||||
[END]
|
||||
20
projects/mtg/bin/Res/test/generic/rampage.txt
Normal file
20
projects/mtg/bin/Res/test/generic/rampage.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#Testing Rampage
|
||||
[INIT]
|
||||
COMBATATTACKERS
|
||||
[PLAYER1]
|
||||
inplay:Elvish Berserker
|
||||
[PLAYER2]
|
||||
inplay:raging goblin
|
||||
[DO]
|
||||
Elvish Berserker
|
||||
next
|
||||
raging goblin
|
||||
next
|
||||
next
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:Elvish Berserker
|
||||
[PLAYER2]
|
||||
graveyard:raging goblin
|
||||
[END]
|
||||
22
projects/mtg/bin/Res/test/generic/regenerate.txt
Normal file
22
projects/mtg/bin/Res/test/generic/regenerate.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
#Testing Regenerate
|
||||
[INIT]
|
||||
COMBATATTACKERS
|
||||
[PLAYER1]
|
||||
inplay:Drudge Skeletons,swamp
|
||||
[PLAYER2]
|
||||
inplay:raging goblin
|
||||
[DO]
|
||||
Drudge skeletons
|
||||
swamp
|
||||
Drudge skeletons
|
||||
next
|
||||
raging goblin
|
||||
next
|
||||
next
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:Drudge Skeletons,swamp
|
||||
[PLAYER2]
|
||||
graveyard:raging goblin
|
||||
[END]
|
||||
20
projects/mtg/bin/Res/test/glimpse_the_unthinkable.txt
Normal file
20
projects/mtg/bin/Res/test/glimpse_the_unthinkable.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#Testing Deplete (sorcery
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Glimpse the Unthinkable
|
||||
manapool:{U}{B}
|
||||
[PLAYER2]
|
||||
library:swamp,plains,mountain,forest,island,bayou,plateau,white knight,black knight,grizzly bears,raging goblin
|
||||
[DO]
|
||||
Glimpse the Unthinkable
|
||||
p2
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
graveyard:Glimpse the Unthinkable
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
library:swamp
|
||||
graveyard:plains,mountain,forest,island,bayou,plateau,white knight,black knight,grizzly bears,raging goblin
|
||||
[END]
|
||||
18
projects/mtg/bin/Res/test/howl_of_the_night_pack.txt
Normal file
18
projects/mtg/bin/Res/test/howl_of_the_night_pack.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
#Testing Howl of the night pack
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:153996
|
||||
inplay:1386,1387,1388
|
||||
manapool:{6}{G}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
153996
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:1386,1387,1388,*,*,*
|
||||
graveyard:153996
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
[END]
|
||||
20
projects/mtg/bin/Res/test/millstone.txt
Normal file
20
projects/mtg/bin/Res/test/millstone.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#Testing Deplete
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Millstone
|
||||
manapool:{2}}
|
||||
[PLAYER2]
|
||||
library:swamp,plains,mountain,forest,island,bayou,plateau,white knight,black knight,grizzly bears,raging goblin
|
||||
[DO]
|
||||
Millstone
|
||||
p2
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Millstone
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
library:swamp,plains,mountain,forest,island,bayou,plateau,white knight,black knight
|
||||
graveyard:grizzly bears,raging goblin
|
||||
[END]
|
||||
20
projects/mtg/bin/Res/test/mind_rot.txt
Normal file
20
projects/mtg/bin/Res/test/mind_rot.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#Testing Random discard
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Mind Rot
|
||||
manapool:{2}{B}
|
||||
[PLAYER2]
|
||||
hand:swamp,plains,mountain
|
||||
[DO]
|
||||
Mind Rot
|
||||
p2
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
graveyard:Mind Rot
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
hand:*
|
||||
graveyard:*,*
|
||||
[END]
|
||||
22
projects/mtg/bin/Res/test/spitting_earth.txt
Normal file
22
projects/mtg/bin/Res/test/spitting_earth.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
#Testing Spitting Earth on Dragon engine
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Spitting Earth
|
||||
inplay:129652,129651,129650
|
||||
[PLAYER2]
|
||||
inplay:Dragon Engine
|
||||
[DO]
|
||||
129652
|
||||
129651
|
||||
Spitting Earth
|
||||
Dragon Engine
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:129652,129651,129650
|
||||
graveyard:Spitting Earth
|
||||
manapool:{0}
|
||||
[PLAYER2]
|
||||
graveyard:Dragon Engine
|
||||
[END]
|
||||
20
projects/mtg/bin/Res/test/spoils_of_evil.txt
Normal file
20
projects/mtg/bin/Res/test/spoils_of_evil.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#Testing Spoils of Evil
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:Spoils Of Evil
|
||||
graveyard:black knight
|
||||
manapool:{2}{B}
|
||||
[PLAYER2]
|
||||
graveyard:swamp,grizzly bears,dragon engine
|
||||
[DO]
|
||||
Spoils Of Evil
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
graveyard:black knight,Spoils Of Evil
|
||||
life:22
|
||||
manapool:{2}
|
||||
[PLAYER2]
|
||||
graveyard:swamp,grizzly bears,dragon engine
|
||||
[END]
|
||||
Reference in New Issue
Block a user