use TargetEnchantmentPermanent

This commit is contained in:
Neil Gentleman 2016-07-17 12:44:00 -07:00
parent 82db9ada32
commit 2e46fb9deb
40 changed files with 81 additions and 135 deletions

View file

@ -35,9 +35,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.HauntAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -56,8 +54,7 @@ public class AbsolverThrull extends CardImpl {
// Haunt (When this creature dies, exile it haunting target creature.)
// When Absolver Thrull enters the battlefield or the creature it haunts dies, destroy target enchantment.
Ability ability = new HauntAbility(this, new DestroyTargetEffect());
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -33,8 +33,7 @@ import mage.abilities.keyword.BuybackAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -49,7 +48,7 @@ public class Allay extends CardImpl {
this.addAbility(new BuybackAbility("{3}"));
// Destroy target enchantment.
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new DestroyTargetEffect());
}

View file

@ -37,9 +37,8 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.common.FilterControlledLandPermanent;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetControlledPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -55,7 +54,7 @@ public class AuraFracture extends CardImpl {
Zone.BATTLEFIELD,
new DestroyTargetEffect(),
new SacrificeTargetCost(new TargetControlledPermanent(new FilterControlledLandPermanent("land"))));
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -34,9 +34,8 @@ import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.game.permanent.token.SaprolingToken;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -50,7 +49,7 @@ public class AuraMutation extends CardImpl {
// Destroy target enchantment.
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
// create X 1/1 green Saproling creature tokens, where X is that enchantment's converted mana cost.
this.getSpellAbility().addEffect(new CreateTokenEffect(new SaprolingToken(), new TargetConvertedManaCost()));
}

View file

@ -36,8 +36,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -54,7 +53,7 @@ public class AvenCloudchaser extends CardImpl {
this.toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -35,8 +35,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.CyclingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -48,7 +47,7 @@ public class Clear extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{W}");
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
}

View file

@ -36,8 +36,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -53,7 +52,7 @@ public class CloudchaserEagle extends CardImpl {
this.toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -32,8 +32,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.effects.common.GainLifeEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
import java.util.UUID;
@ -47,7 +46,7 @@ public class Cursebreak extends CardImpl {
// Destroy target enchantment. You gain 2 life.
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addEffect(new GainLifeEffect(2));
}

View file

@ -35,10 +35,9 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterCard;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.target.TargetPermanent;
import mage.target.common.TargetCardInYourGraveyard;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -64,7 +63,7 @@ public class DawnToDusk extends CardImpl {
// and/or destroy target enchantment.
Mode mode = new Mode();
mode.getEffects().add(new DestroyTargetEffect());
mode.getTargets().add(new TargetPermanent(new FilterEnchantmentPermanent()));
mode.getTargets().add(new TargetEnchantmentPermanent());
this.getSpellAbility().addMode(mode);
}

View file

@ -33,8 +33,7 @@ import mage.constants.CardType;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -46,7 +45,7 @@ public class Demystify extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{W}");
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
}
public Demystify (final Demystify card) {

View file

@ -39,9 +39,7 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -61,8 +59,7 @@ public class DruidLyrist extends CardImpl {
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{G}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -38,11 +38,10 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.filter.common.FilterLandPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -75,7 +74,7 @@ public class DuergarHedgeMage extends CardImpl {
// When Duergar Hedge-Mage enters the battlefield, if you control two or more Plains, you may destroy target enchantment.
Ability ability2 = new ConditionalTriggeredAbility(new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true), new PermanentsOnTheBattlefieldCondition(filter2, CountType.MORE_THAN, 1), rule2);
ability2.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability2.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability2);
}

View file

@ -34,11 +34,10 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
* @author Loki
@ -50,7 +49,7 @@ public class EchoingCalm extends CardImpl {
// Destroy target enchantment and all other enchantments with the same name as that enchantment.
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new EchoingCalmEffect());
}

View file

@ -39,8 +39,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -55,7 +54,7 @@ public class ElfReplica extends CardImpl {
this.toughness = new MageInt(2);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{G}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -39,8 +39,7 @@ import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -60,7 +59,7 @@ public class ElvishHexhunter extends CardImpl {
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{G/W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -40,8 +40,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -60,7 +59,7 @@ public class ElvishLyrist extends CardImpl {
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{G}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -38,6 +38,7 @@ import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -54,8 +55,7 @@ public class EnlightenedAscetic extends CardImpl {
// When Enlightened Ascetic enters the battlefield, you may destroy target enchantment.
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true);
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -32,8 +32,7 @@ import mage.constants.CardType;
import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -46,7 +45,7 @@ public class Erase extends CardImpl {
// Exile target enchantment.
this.getSpellAbility().addEffect(new ExileTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
}
public Erase(final Erase card) {

View file

@ -35,9 +35,8 @@ import mage.abilities.effects.common.discard.DiscardTargetEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.TargetPlayer;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -51,7 +50,7 @@ public class EsperCharm extends CardImpl {
// Choose one - Destroy target enchantment;
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
// or draw two cards;
Mode mode = new Mode();
mode.getEffects().add(new DrawCardSourceControllerEffect(2));

View file

@ -33,8 +33,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.MadnessAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
import java.util.UUID;
@ -50,7 +49,7 @@ public class FranticPurification extends CardImpl {
// Destroy target enchantment.
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
// Madness {W}
this.addAbility(new MadnessAbility(this, new ManaCostsImpl("{W}")));

View file

@ -38,8 +38,7 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -57,7 +56,7 @@ public class GolgariCharm extends CardImpl {
// or destroy target enchantment;
Mode mode = new Mode();
mode.getEffects().add(new DestroyTargetEffect());
mode.getTargets().add(new TargetPermanent(new FilterEnchantmentPermanent()));
mode.getTargets().add(new TargetEnchantmentPermanent());
this.getSpellAbility().addMode(mode);
// or regenerate each creature you control.

View file

@ -34,9 +34,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.target.common.TargetEnchantmentPermanent;
@ -56,7 +54,7 @@ public class HullBreach extends CardImpl {
// or destroy target enchantment;
Mode mode = new Mode();
mode.getEffects().add(new DestroyTargetEffect());
target = new TargetPermanent(new FilterEnchantmentPermanent());
target = new TargetEnchantmentPermanent();
mode.getTargets().add(target);
this.getSpellAbility().addMode(mode);
// or destroy target artifact and target enchantment.

View file

@ -39,8 +39,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -55,7 +54,7 @@ public class KamiOfAncientLaw extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -37,8 +37,7 @@ import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
* @author LevelX2
@ -54,7 +53,7 @@ public class KeeningApparition extends CardImpl {
// Sacrifice Keening Apparition: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(),new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -41,8 +41,7 @@ import mage.abilities.keyword.PersistAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -62,7 +61,7 @@ public class KithkinSpellduster extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {1}{W}, Sacrifice Kithkin Spellduster: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{W}"));
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
// Persist

View file

@ -35,9 +35,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -55,8 +53,7 @@ public class MonkRealist extends CardImpl {
// When Monk Realist enters the battlefield, destroy target enchantment.
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -37,9 +37,8 @@ import mage.abilities.effects.common.ReturnToHandSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.filter.common.FilterSpiritOrArcaneCard;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -56,7 +55,7 @@ public class NikkoOnna extends CardImpl {
// When Nikko-Onna enters the battlefield, destroy target enchantment.
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
// Whenever you cast a Spirit or Arcane spell, you may return Nikko-Onna to its owner's hand.

View file

@ -38,9 +38,7 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -59,8 +57,7 @@ public class PriestOfIroas extends CardImpl {
// {3}{W}, Sacrifice Priest of Iroas: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{3}{W}"));
ability.addCost(new SacrificeSourceCost());
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -41,9 +41,8 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.ColoredManaSymbol;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetControlledCreaturePermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -63,7 +62,7 @@ public class QuagmireDruid extends CardImpl {
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(false), new ColoredManaCost(ColoredManaSymbol.G));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -34,8 +34,7 @@ import mage.constants.CardType;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
* @author Loki
@ -46,7 +45,7 @@ public class QuietPurity extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{W}");
this.subtype.add("Arcane");
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new DestroyTargetEffect());
}

View file

@ -32,10 +32,9 @@ import mage.abilities.Mode;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.filter.common.FilterLandPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.target.common.TargetEnchantmentPermanent;
import mage.target.common.TargetLandPermanent;
import java.util.UUID;
@ -58,12 +57,12 @@ public class RainOfThorns extends CardImpl {
Mode mode1 = new Mode();
mode1.getEffects().add(new DestroyTargetEffect());
mode1.getTargets().add(new TargetPermanent(new FilterEnchantmentPermanent()));
mode1.getTargets().add(new TargetEnchantmentPermanent());
this.getSpellAbility().addMode(mode1);
Mode mode2 = new Mode();
mode2.getEffects().add(new DestroyTargetEffect());
mode2.getTargets().add(new TargetPermanent(new FilterLandPermanent()));
mode2.getTargets().add(new TargetLandPermanent());
this.getSpellAbility().addMode(mode2);
}

View file

@ -33,9 +33,7 @@ import mage.abilities.effects.common.GainLifeEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -49,8 +47,7 @@ public class RayOfDissolution extends CardImpl {
// Destroy target enchantment. You gain 3 life.
this.getSpellAbility().addEffect(new DestroyTargetEffect());
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
this.getSpellAbility().addTarget(target);
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new GainLifeEffect(3));
}

View file

@ -35,8 +35,7 @@ import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.FlashbackAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -49,7 +48,7 @@ public class RayOfRevelation extends CardImpl {
// Destroy target enchantment.
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new DestroyTargetEffect());
// Flashback {G}
this.addAbility(new FlashbackAbility(new ManaCostsImpl("{G}"), TimingRule.INSTANT));

View file

@ -32,8 +32,7 @@ import mage.constants.CardType;
import mage.abilities.effects.common.ExileTargetAndSearchGraveyardHandLibraryEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -47,7 +46,7 @@ public class Scour extends CardImpl {
// Exile target enchantment.
// Search its controller's graveyard, hand, and library for all cards with the same name as that enchantment and exile them. Then that player shuffles his or her library.
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect(false, "its controller's","all cards with the same name as that enchantment"));
}

View file

@ -43,8 +43,7 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.Zone;
import mage.counters.CounterType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -68,7 +67,7 @@ public class Shinewend extends CardImpl {
// {1}{W}, Remove a +1/+1 counter from Shinewend: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{W}"));
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -37,8 +37,7 @@ import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.Zone;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
import java.util.UUID;
@ -56,7 +55,7 @@ public class SilverchaseFox extends CardImpl {
// {1}{W}, Sacrifice Silverchase Fox: Exile target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}{W}"));
ability.addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
ability.addTarget(new TargetEnchantmentPermanent());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -36,9 +36,7 @@ import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -56,8 +54,7 @@ public class WarPriestOfThune extends CardImpl {
// When War Priest of Thune enters the battlefield, you may destroy target enchantment.
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true);
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -32,10 +32,9 @@ import mage.constants.CardType;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardSetInfo;
import mage.cards.SplitCard;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -55,7 +54,7 @@ public class WearTear extends SplitCard {
// Tear
// Destroy target enchantment.
getRightHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());
target = new TargetPermanent(new FilterEnchantmentPermanent());
target = new TargetEnchantmentPermanent();
getRightHalfCard().getSpellAbility().addTarget(target);
}

View file

@ -34,8 +34,7 @@ import mage.abilities.keyword.CyclingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -47,7 +46,7 @@ public class WipeClean extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{W}");
// Exile target enchantment.
this.getSpellAbility().addTarget(new TargetPermanent(new FilterEnchantmentPermanent()));
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new ExileTargetEffect());
// Cycling {3}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{3}")));

View file

@ -37,9 +37,7 @@ import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.EvokeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.filter.common.FilterEnchantmentPermanent;
import mage.target.Target;
import mage.target.TargetPermanent;
import mage.target.common.TargetEnchantmentPermanent;
/**
*
@ -58,8 +56,7 @@ public class Wispmare extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// When Wispmare enters the battlefield, destroy target enchantment.
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
Target target = new TargetPermanent(new FilterEnchantmentPermanent());
ability.addTarget(target);
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
// Evoke {W}
this.addAbility(new EvokeAbility(this, "{W}"));