Erwan
- fix issue 211 (circle of protection VS Black knight)
This commit is contained in:
@@ -100,6 +100,7 @@ cathodion.txt
|
|||||||
celestial_purge.txt
|
celestial_purge.txt
|
||||||
chainbreaker.txt
|
chainbreaker.txt
|
||||||
circle_of_protection.txt
|
circle_of_protection.txt
|
||||||
|
circle_of_protection_i211.txt
|
||||||
civic_wayfinder.txt
|
civic_wayfinder.txt
|
||||||
clone.txt
|
clone.txt
|
||||||
clone2.txt
|
clone2.txt
|
||||||
|
|||||||
27
projects/mtg/bin/Res/test/circle_of_protection_i211.txt
Normal file
27
projects/mtg/bin/Res/test/circle_of_protection_i211.txt
Normal 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]
|
||||||
@@ -1287,6 +1287,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
ACircleOfProtection(int _id, MTGCardInstance * source, int _color):TargetAbility(_id,source,NEW SpellOrPermanentTargetChooser(source,_color),NEW ManaCost(),0,0){
|
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);
|
cost->add(Constants::MTG_COLOR_ARTIFACT,1);
|
||||||
|
tc->targetter = NULL; //Circle of Protection doesn't use the word "source"
|
||||||
}
|
}
|
||||||
|
|
||||||
int resolve(){
|
int resolve(){
|
||||||
|
|||||||
Reference in New Issue
Block a user