congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ReturnToHandAttachedEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

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

public SqueesEmbrace(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{R}{W}");
  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 gets +2/+2.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 2, Duration.WhileOnBattlefield)));
  
  // When enchanted creature dies, return that card to its owner's hand.
  this.addAbility(new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted creature"));
}
origin: magefree/mage

public DemonicVigor(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{B}");
  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 gets +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)));
  // When enchanted creature dies, return that card to its owner's hand.
  this.addAbility(new DiesAttachedTriggeredAbility(new ReturnToHandAttachedEffect(), "enchanted creature"));
}
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 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 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 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 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.commonReturnToHandAttachedEffect<init>

Popular methods of ReturnToHandAttachedEffect

  • getValue

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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