From 53153b237c25d81c67af4a9c5f41a5c4af6f7a3b Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Thu, 17 Sep 2015 22:50:21 +0800 Subject: [PATCH 1/4] CDA test # 1 Testing layer 7a, 7b and 7c :) --- projects/mtg/bin/Res/test/CDA#1.txt | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 projects/mtg/bin/Res/test/CDA#1.txt diff --git a/projects/mtg/bin/Res/test/CDA#1.txt b/projects/mtg/bin/Res/test/CDA#1.txt new file mode 100644 index 000000000..4c583a5e9 --- /dev/null +++ b/projects/mtg/bin/Res/test/CDA#1.txt @@ -0,0 +1,46 @@ +#Testing CDA Tarmogoyf vs Godhead of Awe +#Godhead of Awe makes other creatures 1/1 on layer 7b +#Tarmogoyf's CDA ability is on layer 7a so it will be overriden +#by Godhead of Awe. Giant Growth's ability is on layer 7c so +#the +3/+3 bonus is intact. :) +[INIT] +FIRSTMAIN +[PLAYER1] +inplay:Concordant Crossroads, Godhead of Awe, Forest +hand:Tarmogoyf, Giant Growth +graveyard:mountain, lightning bolt, grizzly bear +manapool:{1}{G} +[PLAYER2] +[DO] +Tarmogoyf +next +next +Tarmogoyf +next +eot +eot +#untap +next +#upkeep +next +#draw +next +#main1 +Forest +Giant Growth +Tarmogoyf +next +#combat begin +next +#attackers +Tarmogoyf +eot +[ASSERT] +UNTAP +[PLAYER1] +inplay:Concordant Crossroads, Godhead of Awe, Tarmogoyf, Forest +graveyard:mountain, lightning bolt, grizzly bear, Giant Growth +manapool:{0} +[PLAYER2] +life:15 +[END] From 7ce05fb4fce692a480cabd54eccac89fd8ed0f5b Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Fri, 18 Sep 2015 05:27:48 +0800 Subject: [PATCH 2/4] CDA test # 2 --- projects/mtg/bin/Res/test/CDA#2.txt | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 projects/mtg/bin/Res/test/CDA#2.txt diff --git a/projects/mtg/bin/Res/test/CDA#2.txt b/projects/mtg/bin/Res/test/CDA#2.txt new file mode 100644 index 000000000..c1fca2d5b --- /dev/null +++ b/projects/mtg/bin/Res/test/CDA#2.txt @@ -0,0 +1,38 @@ +#Testing CDA Turn to Frog vs Krosan Cloudscraper +#Krosan Cloudscraper that is turned into frog with 1 damage +#from Lightning Dart must die because when you change +#the power and toughness into 1/1, the 1 point of damage +#is taken into account... +[INIT] +FIRSTMAIN +[PLAYER1] +inplay:Krosan Cloudscraper +[PLAYER2] +inplay:Mountain, Plains, Swamp, Island +hand:Lightning Dart, Turn to Frog +[DO] +next +next +Krosan Cloudscraper +next +no +yes +Mountain +Plains +Lightning Dart +Krosan Cloudscraper +Swamp +Island +Turn to Frog +Krosan Cloudscraper +endinterruption +eot +[ASSERT] +UNTAP +[PLAYER1] +graveyard:Krosan Cloudscraper +[PLAYER2] +inplay:Mountain, Plains, Swamp, Island +graveyard:Lightning Dart, Turn to Frog +life:20 +[END] From 8c9a98e3e9c33f15f527e270998c6c36be6d9938 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Fri, 18 Sep 2015 05:31:13 +0800 Subject: [PATCH 3/4] Update _tests.txt --- projects/mtg/bin/Res/test/_tests.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index eede5159b..34d5ed0d0 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -210,6 +210,8 @@ Call_to_Heel_1.txt Call_to_Heel_2.txt castle.txt cathodion.txt +CDA#1.txt +CDA#2.txt celestial_mantle.txt celestial_purge.txt celestial_sword.txt From 13bb6dbe9383c13cdf1a6656c0230e197f2b38ad Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Fri, 18 Sep 2015 06:03:53 +0800 Subject: [PATCH 4/4] Update Token.cpp Fix typo --- projects/mtg/src/Token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/Token.cpp b/projects/mtg/src/Token.cpp index a63bb9167..bb303558f 100644 --- a/projects/mtg/src/Token.cpp +++ b/projects/mtg/src/Token.cpp @@ -52,7 +52,7 @@ Token::Token(const Token& source) : origpower = source.origpower; origtoughness = source.origtoughness; basepower = source.origpower; - basetoughness = source.origpower; + basetoughness = source.origtoughness; pbonus = source.pbonus; tbonus = source.tbonus; rarity = source.rarity;