* CantBeCounteredControlledEffect - Fixed a bug that the counter source was not cheched correctly (e.g. it was possible to counter spells with blue counters after Autumn's Veil).

This commit is contained in:
LevelX2 2015-03-24 22:46:52 +01:00
parent b2e27f17f1
commit 23d431a65a
5 changed files with 84 additions and 5 deletions

View file

@ -42,6 +42,7 @@ import mage.target.TargetSpell;
* @author Loki
*/
public class SpellSnare extends CardImpl {
private static final FilterSpell filter = new FilterSpell("spell with converted mana cost 2");
static {
@ -52,8 +53,6 @@ public class SpellSnare extends CardImpl {
super(ownerId, 33, "Spell Snare", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{U}");
this.expansionSetCode = "DIS";
this.color.setBlue(true);
// Counter target spell with converted mana cost 2.
this.getSpellAbility().addEffect(new CounterTargetEffect());
this.getSpellAbility().addTarget(new TargetSpell(filter));

View file

@ -60,9 +60,10 @@ public class AutumnsVeil extends CardImpl {
public AutumnsVeil(UUID ownerId) {
super(ownerId, 162, "Autumn's Veil", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{G}");
this.expansionSetCode = "M11";
this.color.setGreen(true);
// Spells you control can't be countered by blue or black spells this turn
this.getSpellAbility().addEffect(new CantBeCounteredControlledEffect(filterTarget1, filterSource, Duration.EndOfTurn));
// and creatures you control can't be the targets of blue or black spells this turn.
this.getSpellAbility().addEffect(new CantBeTargetedAllEffect(filterTarget2, filterSource, Duration.EndOfTurn));
}