Tabnine Logo
CopyTargetSpellEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.CopyTargetSpellEffect
constructor

Best Java code snippets using mage.abilities.effects.common.CopyTargetSpellEffect.<init> (Showing top 20 results out of 315)

origin: magefree/mage

@Override
public CopyTargetSpellEffect copy() {
  return new CopyTargetSpellEffect(this);
}
origin: magefree/mage

PyromancerAscensionCopyTriggeredAbility() {
  super(Zone.BATTLEFIELD, new CopyTargetSpellEffect(true), true);
}
origin: magefree/mage

MirariTriggeredAbility() {
  super(Zone.BATTLEFIELD, new DoIfCostPaid(
      new CopyTargetSpellEffect(true),
      new GenericManaCost(3)), false);
}
origin: magefree/mage

  public WillKenrithEmblem() {
    this.setName("Emblem Will Kenrith");
    this.getAbilities().add(new SpellCastControllerTriggeredAbility(
        Zone.COMMAND,
        new CopyTargetSpellEffect(true).withSpellName("it"),
        StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY,
        false,
        true
    ));
  }
}
origin: magefree/mage

public SwarmIntelligence(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{6}{U}");
  // Whenever you cast an instant or sorcery spell, you may copy that spell. You may choose new targets for the copy.
  this.addAbility(new SpellCastControllerTriggeredAbility(
      new CopyTargetSpellEffect(true).setText("you may copy that spell. You may choose new targets for the copy"), new FilterInstantOrSorcerySpell("an instant or sorcery spell"), true, true));
}
origin: magefree/mage

public MirrorSheen(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U/R}{U/R}");
  // {1}{UR}{UR}: Copy target instant or sorcery spell that targets you. You may choose new targets for the copy.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{1}{U/R}{U/R}"));
  ability.addTarget(new TargetSpell(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public Reverberate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{R}{R}");
  
  // Copy target instant or sorcery spell. You may choose new targets for the copy.
  this.getSpellAbility().addTarget(new TargetSpell(filter));
  this.getSpellAbility().addEffect(new CopyTargetSpellEffect());
}
origin: magefree/mage

public Twincast(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{U}{U}");
  // Copy target instant or sorcery spell. You may choose new targets for the copy.
  this.getSpellAbility().addEffect(new CopyTargetSpellEffect());
  this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
}
origin: magefree/mage

public DualcasterMage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{R}{R}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  
  // When Dualcaster Mage enters the battlefield, copy target instant or sorcery spell. You may choose new targets for the copy.
  Ability ability = new EntersBattlefieldTriggeredAbility(new CopyTargetSpellEffect(), false);
  ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
  this.addAbility(ability);
}
origin: magefree/mage

public PrimalWellspring(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  this.nightCard = true;
  // Add one mana of any color.
  Ability ability = new AnyColorManaAbility();
  this.addAbility(ability);
  // When that mana is spent to cast an instant or sorcery spell, copy that spell and you may choose new targets for the copy.
  Effect effect = new CopyTargetSpellEffect(true);
  effect.setText("copy that spell and you may choose new targets for the copy");
  this.addAbility(new PyrimalWellspringTriggeredAbility(ability.getOriginalId(), effect));
}
origin: magefree/mage

public Reiterate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}{R}");
  // Buyback {3}
  this.addAbility(new BuybackAbility("{3}"));
  // Copy target instant or sorcery spell. You may choose new targets for the copy.
  this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
  this.getSpellAbility().addEffect(new CopyTargetSpellEffect());
}
origin: magefree/mage

public PyromancersGoggles(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}");
  addSuperType(SuperType.LEGENDARY);
  // {T}: Add {R}.
  Ability ability = new RedManaAbility();
  this.addAbility(ability);
  // When that mana is used to cast a red instant or sorcery spell, copy that spell and you may choose new targets for the copy.
  Effect effect = new CopyTargetSpellEffect(true);
  effect.setText("copy that spell and you may choose new targets for the copy");
  this.addAbility(new PyromancersGogglesTriggeredAbility(ability.getOriginalId(), effect));
}
origin: magefree/mage

public SigilTracer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}{U}");
  this.subtype.add(SubType.MERFOLK);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // {1}{U}, Tap two untapped Wizards you control: Copy target instant or sorcery spell. You may choose new targets for the copy.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{1}{U}"));
  ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
  ability.addCost(new TapTargetCost(new TargetControlledCreaturePermanent(2, 2, filter, false)));
  this.addAbility(ability);
}
origin: magefree/mage

public FuryStorm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}{R}");
  // When you cast this spell, copy it for each time you've cast your commander from the command zone this game. You may choose new targets for the copies.
  this.addAbility(new CommanderStormAbility());
  // Copy target instant or sorcery spell. You may choose new targets for the copy.
  this.getSpellAbility().addEffect(new CopyTargetSpellEffect());
  this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
}
origin: magefree/mage

public Geistblast(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{R}");
  // Geistblast deals 2 damage to any target.
  this.getSpellAbility().addEffect(new DamageTargetEffect(2));
  this.getSpellAbility().addTarget(new TargetAnyTarget());
  // {2}{U}, Exile Geistblast from your graveyard: Copy target instant or sorcery you control. You may choose new targets for the copy.
  Ability ability = new SimpleActivatedAbility(Zone.GRAVEYARD, new CopyTargetSpellEffect(), new ManaCostsImpl<>("{2}{U}"));
  ability.addTarget(new TargetSpell(filter));
  ability.addCost(new ExileSourceFromGraveCost());
  this.addAbility(ability);
}
origin: magefree/mage

public ClovenCasting(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{5}{U}{R}");
  // Whenever you cast a multicolored instant or sorcery spell, you may pay {1}. If you do, copy that spell. You may choose new targets for the copy.
  Effect effect = new CopyTargetSpellEffect(true);
  effect.setText("copy that spell. You may choose new targets for the copy");
  this.addAbility(new SpellCastControllerTriggeredAbility(new DoIfCostPaid(effect, new GenericManaCost(1)), filter, true, true));
}
origin: magefree/mage

public NivixGuildmage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}{R}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // {1}{U}{R}: Draw a card, then discard a card.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl("{1}{U}{R}")));
  
  // {2}{U}{R}: Copy target instant or sorcery spell you control. You may choose new targets for the copy.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{2}{U}{R}"));
  ability.addTarget(new TargetSpell(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public WildRicochet(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{R}{R}");
  // You may choose new targets for target instant or sorcery spell. Then copy that spell. You may choose new targets for the copy.
  this.getSpellAbility().addEffect(new ChooseNewTargetsTargetEffect());
  Effect effect = new CopyTargetSpellEffect();
  effect.setText("Then copy that spell. You may choose new targets for the copy");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetStackObject(filter));
}
origin: magefree/mage

public ExpansionExplosion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U/R}{U/R}", "{X}{U}{U}{R}{R}", SpellAbilityType.SPLIT);
  // Expansion
  // Copy target instant or sorcery spell with converted mana cost 4 or less. You may choose new targets for the copy.
  this.getLeftHalfCard().getSpellAbility().addEffect(new CopyTargetSpellEffect());
  this.getLeftHalfCard().getSpellAbility().addTarget(new TargetSpell(filter));
  // Explosion
  // Explosion deals X damage to any target. Target player draws X cards.
  this.getRightHalfCard().getSpellAbility().addEffect(new ExplosionEffect());
  this.getRightHalfCard().getSpellAbility().addTarget(new TargetAnyTarget());
  this.getRightHalfCard().getSpellAbility().addTarget(new TargetPlayer());
}
origin: magefree/mage

public RefuseCooperate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, new CardType[]{CardType.INSTANT}, "{3}{R}", "{2}{U}", SpellAbilityType.SPLIT_AFTERMATH);
  // Refuse
  // Refuse deals damage to target spell's controller equal to that spell's converted mana cost.
  getLeftHalfCard().getSpellAbility().addEffect(new RefuseEffect());
  getLeftHalfCard().getSpellAbility().addTarget(new TargetSpell());
  // Cooperate
  // Aftermath
  getRightHalfCard().addAbility(new AftermathAbility().setRuleAtTheTop(true));
  // Copy target instant or sorcery spell. You may choose new targets for the copy.
  getRightHalfCard().getSpellAbility().addEffect(new CopyTargetSpellEffect());
  getRightHalfCard().getSpellAbility().addTarget(new TargetSpell(new FilterInstantOrSorcerySpell()));
}
mage.abilities.effects.commonCopyTargetSpellEffect<init>

Popular methods of CopyTargetSpellEffect

  • apply
  • setText
  • withSpellName

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now