diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 85d34d28f..e3b7f9d70 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -100,6 +100,7 @@ cathodion.txt celestial_purge.txt chainbreaker.txt circle_of_protection.txt +circle_of_protection_i211.txt civic_wayfinder.txt clone.txt clone2.txt diff --git a/projects/mtg/bin/Res/test/circle_of_protection_i211.txt b/projects/mtg/bin/Res/test/circle_of_protection_i211.txt new file mode 100644 index 000000000..ad5fb070c --- /dev/null +++ b/projects/mtg/bin/Res/test/circle_of_protection_i211.txt @@ -0,0 +1,27 @@ +#Testing circle of protection (black) with a Black Knight attack +#see http://code.google.com/p/wagic/issues/detail?id=211 +[INIT] +COMBATATTACKERS +[PLAYER1] +inplay:Black Knight +[PLAYER2] +inplay:1335,plains +[DO] +Black Knight +next +#blockers +plains +1335 +Black Knight +next +#damage +next +#combatend +[ASSERT] +COMBATEND +[PLAYER1] +inplay:Black Knight +[PLAYER2] +inplay:1335,plains +life:20 +[END] \ No newline at end of file diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index bb33baa4b..ee8660be5 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -1287,6 +1287,7 @@ protected: public: ACircleOfProtection(int _id, MTGCardInstance * source, int _color):TargetAbility(_id,source,NEW SpellOrPermanentTargetChooser(source,_color),NEW ManaCost(),0,0){ cost->add(Constants::MTG_COLOR_ARTIFACT,1); + tc->targetter = NULL; //Circle of Protection doesn't use the word "source" } int resolve(){