- fix issue 211 (circle of protection VS Black knight)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-03 14:14:27 +00:00
parent 6c50c3d02a
commit 57a320dbef
3 changed files with 29 additions and 0 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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(){