Tabnine Logo
BecomesCreatureAttachedEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
BecomesCreatureAttachedEffect
in
mage.abilities.effects.common.continuous

Best Java code snippets using mage.abilities.effects.common.continuous.BecomesCreatureAttachedEffect (Showing top 14 results out of 315)

origin: magefree/mage

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

public LivingTerrain(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}{G}");
  this.subtype.add(SubType.AURA);
  // Enchant land
  
  TargetPermanent auraTarget = new TargetLandPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted land is a 5/6 green Treefolk creature that's still a land.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new TreefolkToken(), "Enchanted land is a 5/6 green Treefolk creature that's still a land", Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR)));
}
origin: magefree/mage

public DeepFreeze(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature has base power and toughness 0/4, has defender, loses all other abilities, and is a blue Wall in addition to its other colors and types.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new BecomesCreatureAttachedEffect(new DeepFreezeToken(),
          "Enchanted creature has base power and toughness 0/4, has defender, loses all other abilities, and is a blue Wall in addition to its other colors and types",
          Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.ABILITIES)
  ));
}
origin: magefree/mage

public AwakenTheAncient(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{R}{R}{R}");
  this.subtype.add(SubType.AURA);
  // Enchant Mountain
  TargetPermanent auraTarget = new TargetLandPermanent(filter);
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted Mountain is a 7/7 red Giant creature with haste. It's still a land.
  Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new GiantToken(), "Enchanted Mountain is a 7/7 red Giant creature with haste. It's still a land", Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR));
  this.addAbility(ability2);
}
origin: magefree/mage

public EnsoulArtifact(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant artifact
  TargetPermanent auraTarget = new TargetArtifactPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Benefit));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted artifact is a creature with base power and toughness 5/5 in addition to its other types.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, 
    new BecomesCreatureAttachedEffect(new CreatureToken(5, 5), "Enchanted artifact is a creature with base power and toughness 5/5 in addition to its other types", Duration.WhileOnBattlefield)
  ));
}
origin: magefree/mage

public FowlPlay(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant creature 
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature is a Chicken with base power and toughness 1/1 and loses all abilities.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new BecomesCreatureAttachedEffect(new CreatureToken(1, 1, "1/1 Chicken creature", SubType.CHICKEN),
          "Enchanted creature is a Chicken with base power and toughness 1/1 and loses all abilities",
          Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.ABILITIES_SUBTYPE)));
}
origin: magefree/mage

public DarksteelMutation(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature is an Insect artifact creature with base power and toughness 0/1 and has indestructible, and it loses all other abilities, card types, and creature types.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new BecomesCreatureAttachedEffect(new DarksteelMutationInsectToken(),
          "Enchanted creature is an Insect artifact creature with base power and toughness 0/1 and has indestructible, and it loses all other abilities, card types, and creature types.",
          Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.ALL_BUT_COLOR)));
}
origin: magefree/mage

public Lignify(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.TRIBAL,CardType.ENCHANTMENT},"{1}{G}");
  this.subtype.add(SubType.TREEFOLK);
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.LoseAbility));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature is a Treefolk with base power and toughness 0/4 and loses all abilities.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new BecomesCreatureAttachedEffect(new CreatureToken(0, 4, "0/4 Treefolk creature", SubType.TREEFOLK),
          "Enchanted creature is a Treefolk with base power and toughness 0/4 and loses all abilities",
          Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.ABILITIES_SUBTYPE)));
}
origin: magefree/mage

public CrusherZendikon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{R}");
  this.subtype.add(SubType.AURA);
  // Enchant land
  TargetPermanent auraTarget = new TargetLandPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted land is a 4/2 red Beast creature with trample. It's still a land.
  Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new BeastToken(), "Enchanted land is a 4/2 red Beast creature with trample. It's still a land.", Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR));
  this.addAbility(ability2);
  // When enchanted land dies, return that card to its owner's hand.
  Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false);
  this.addAbility(ability3);
}
origin: magefree/mage

public TezzeretsTouch(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}{B}");
  this.subtype.add(SubType.AURA);
  // Enchant artifact
  TargetPermanent auraTarget = new TargetArtifactPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Benefit));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted artifact is a creature with base power and toughness 5/5 in addition to its other types.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new CreatureToken(5, 5, "5/5 creature"),"Enchanted artifact is a creature with base power and toughness 5/5 in addition to its other types", Duration.WhileOnBattlefield)));
  // When enchanted artifact is put into a graveyard, return that card to its owner's hand.
  this.addAbility(new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted artifact", false, false));
}
origin: magefree/mage

public GuardianZendikon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{W}");
  this.subtype.add(SubType.AURA);
  // Enchant land
  // Enchanted land is a 2/6 white Wall creature with defender. It's still a land.
  // When enchanted land dies, return that card to its owner's hand.
  TargetPermanent auraTarget = new TargetLandPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new GuardianZendikonWallToken(), "Enchanted land is a 2/6 white wall creature with defender. It's still a land", Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR));
  this.addAbility(ability2);
  Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false);
  this.addAbility(ability3);
}
origin: magefree/mage

public WindZendikon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}");
  this.subtype.add(SubType.AURA);
  // Enchant land
  // Enchanted land is a 2/2 blue Elemental creature with flying. It's still a land.
  // When enchanted land dies, return that card to its owner's hand.
  
  TargetPermanent auraTarget = new TargetLandPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  
  Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new WindZendikonElementalToken(), "Enchanted land is a 2/2 blue Elemental creature with flying.  It's still a land",
      Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR));
  this.addAbility(ability2);
  
  Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false);
  this.addAbility(ability3);
}
origin: magefree/mage

public CorruptedZendikon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}");
  this.subtype.add(SubType.AURA);
  // Enchant land
  TargetPermanent auraTarget = new TargetLandPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted land is a 3/3 black Ooze creature. It's still a land.
  Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD,
      new BecomesCreatureAttachedEffect(new CorruptedZendikonOozeToken(),
          "Enchanted land is a 3/3 black Ooze creature. It's still a land.", Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR));
  this.addAbility(ability2);
  // When enchanted land dies, return that card to its owner's hand.
  Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false);
  this.addAbility(ability3);
}
origin: magefree/mage

public VastwoodZendikon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{4}{G}");
  this.subtype.add(SubType.AURA);
  // Enchant land
  // Enchanted land is a 6/4 green Elemental creature. It's still a land.
  // When enchanted land dies, return that card to its owner's hand.
  
  TargetPermanent auraTarget = new TargetLandPermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutCreatureInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  
  Ability ability2 = new SimpleStaticAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(
      new ElementalCreatureToken(6, 4, "6/4 green Elemental creature", new ObjectColor("G")),
      "Enchanted land is a 6/4 green Elemental creature. It's still a land", Duration.WhileOnBattlefield, BecomesCreatureAttachedEffect.LoseType.COLOR));
  this.addAbility(ability2);
  
  Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted land", false);
  this.addAbility(ability3);
}
mage.abilities.effects.common.continuousBecomesCreatureAttachedEffect

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
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