From 4176e1b286f17a766e41391f4c45f5c6fe4e5c28 Mon Sep 17 00:00:00 2001 From: "solo81@web.de" Date: Sat, 12 Jun 2010 20:16:52 +0000 Subject: [PATCH] Added One Dozen Eyes (the first card with Entwine in Wagic). Added a test for One Dozen Eyes and Glimmervoid. --- projects/mtg/bin/Res/sets/primitives/mtg.txt | 23 ++++++++++++-- projects/mtg/bin/Res/test/Glimmervoid.txt | 20 ++++++++++++ projects/mtg/bin/Res/test/OneDozenEyes.txt | 32 ++++++++++++++++++++ projects/mtg/bin/Res/test/_tests.txt | 2 ++ 4 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 projects/mtg/bin/Res/test/Glimmervoid.txt create mode 100644 projects/mtg/bin/Res/test/OneDozenEyes.txt diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index 5519b6f4b..bf9e49252 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -17805,7 +17805,7 @@ auto={T}:add{U} auto={T}:add{B} auto={T}:add{R} auto={T}:add{G} -auto=@next endofturn:aslongas(artifact|mybattlefield) bury <1 +auto=@each my endofturn:aslongas(artifact|mybattlefield) bury <1 text=At the beginning of the end step, if you control no artifacts, sacrifice Glimmervoid. -- {T}: Add one mana of any color to your mana pool. type=Land [/card] @@ -31437,6 +31437,25 @@ power=2 toughness=4 [/card] [card] +name=One Dozen Eyes +kicker={G}{G}{G} +auto=kicker token(-483851111) +auto=may token(Beast,creature beast, 5/5,green) +auto=may token(Insect,creature insect, 1/1,green)*5 +text=Choose one — Put a 5/5 green Beast creature token onto the battlefield; or put five 1/1 green Insect creature tokens onto the battlefield. -- Entwine {G}{G}{G} (Choose both if you pay the entwine cost.) +mana={5}{G} +type=Sorcery +[/card] +[card] +name=One Dozen Eyes Entwine +auto=counter(0/0,1,Entwine) +auto=@movedTo(insect|mybattlefield):thisforeach(counter{0/0.1.Entwine}>0) token(Beast,creature beast, 5/5,green) && counter(0/0,-1,Entwine) && counter(0/0,1,Bury) +auto=@movedTo(beast|mybattlefield):thisforeach(counter{0/0.1.Entwine}>0) token(Insect,creature insect, 1/1,green)*5 && counter(0/0,-1,Entwine) && counter(0/0,1,Bury) +auto=thisforeach(counter{0/0.1.Bury}>0) bury +id=-483851111 +type=Nothing +[/Card] +[card] name=One with Nothing auto=moveto(mygraveyard) all(*|myhand) text=Discard your hand. @@ -46016,7 +46035,7 @@ auto={T}:add{U} auto={T}:add{B} auto={T}:add{R} auto={T}:add{G} -auto=@next endofturn:aslongas(creature|mybattlefield) bury <1 +auto=@each my endofturn:aslongas(creature|mybattlefield) bury <1 text=At the end of each turn, if you control no creatures, sacrifice Thran Quarry. {T}: Add one mana of any color to your mana pool. type=Land [/card] diff --git a/projects/mtg/bin/Res/test/Glimmervoid.txt b/projects/mtg/bin/Res/test/Glimmervoid.txt new file mode 100644 index 000000000..9e72ea869 --- /dev/null +++ b/projects/mtg/bin/Res/test/Glimmervoid.txt @@ -0,0 +1,20 @@ +#Testing Glimmervoid +[INIT] +SECONDMAIN +[PLAYER1] +inplay:Swamp,Glimmervoid,Bottle Gnomes +[PLAYER2] +life:20 +[DO] +Bottle Gnomes +next +next +[ASSERT] +CLEANUP +[PLAYER1] +inplay:Swamp +graveyard:Glimmervoid,Bottle Gnomes +life:23 +[PLAYER2] +life:20 +[END] \ No newline at end of file diff --git a/projects/mtg/bin/Res/test/OneDozenEyes.txt b/projects/mtg/bin/Res/test/OneDozenEyes.txt new file mode 100644 index 000000000..95cf15471 --- /dev/null +++ b/projects/mtg/bin/Res/test/OneDozenEyes.txt @@ -0,0 +1,32 @@ +#Testing One Dozen Eyes (Entwine keyword) +[INIT] +FIRSTMAIN +[PLAYER1] +hand:One Dozen Eyes,Beast of Burden +inplay:Fervor +manapool:{11}{G}{G}{G}{G} +[PLAYER2] +life:20 +[DO] +One Dozen Eyes +choice 0 +Beast of Burden +next +#begin +next +#attackers +Beast of Burden +next +#blockers +next +#damage +[ASSERT] +COMBATDAMAGE +[PLAYER1] +inplay:Beast of Burden,*,*,*,*,*,*,Fervor +graveyard:One Dozen Eyes +manapool:{0} +life:20 +[PLAYER2] +life:13 +[END] \ No newline at end of file diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 7524f575f..04cebff96 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -244,6 +244,7 @@ ghost_warden.txt glen_elendra_archmage_i222.txt giant_growth.txt giant_growth2.txt +Glimmervoid.txt glimpse_the_unthinkable.txt gnarled_effigy.txt gnat_alley_creeper1.txt @@ -334,6 +335,7 @@ northern_paladin.txt northern_paladin2.txt Nyxathid.txt ondu_cleric.txt +OneDozenEyes.txt orcish_artillery.txt orcish_lumberjack.txt overrun.txt