congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UntapEnchantedEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

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

public DanceOfTheDeadDoIfCostPaidEffect() {
  super(new UntapEnchantedEffect(), new ManaCostsImpl("{1}{B}"));
}
origin: magefree/mage

public ParalyzeEffect() {
  super(new UntapEnchantedEffect(), new GenericManaCost(4));
}
origin: magefree/mage

public CrabUmbra(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{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);
  // {2}{U}: Untap enchanted creature.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new ManaCostsImpl("{2}{U}")));
  // Totem armor
  this.addAbility(new TotemArmorAbility());
}
origin: magefree/mage

public AuraOfDominion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}{U}");
  this.subtype.add(SubType.AURA);
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Untap));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new GenericManaCost(1));
  ability.addCost(new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false)));
  this.addAbility(ability);
}
origin: magefree/mage

public SecondWind(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.Untap));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  
  // {tap}: Tap enchanted creature.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapEnchantedEffect(), new TapSourceCost()));
  
  // {tap}: Untap enchanted creature.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new TapSourceCost()));
}
origin: magefree/mage

public InstillEnergy(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}");
  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 can attack as though it had haste.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItHadHasteEnchantedEffect(Duration.WhileOnBattlefield)));
  // {0}: Untap enchanted creature. Activate this ability only during your turn and only once each turn.
  this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new GenericManaCost(0), 1, MyTurnCondition.instance));
}
origin: magefree/mage

public FreedFromTheReal(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.Untap));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  // {U}: Tap enchanted creature.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapEnchantedEffect(), new ManaCostsImpl("{U}")));
  // {U}: Untap enchanted creature.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new ManaCostsImpl("{U}")));
}
origin: magefree/mage

public Abduction(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{U}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.GainControl));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  
  // When Abduction enters the battlefield, untap enchanted creature.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new UntapEnchantedEffect()));
  
  // You control enchanted creature.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ControlEnchantedEffect()));
  
  // When enchanted creature dies, return that card to the battlefield under its owner's control.
  this.addAbility(new DiesAttachedTriggeredAbility(new ReturnToBattlefieldUnderOwnerControlAttachedEffect(), "enchanted creature", false));
}
origin: magefree/mage

public TriclopeanSight(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{W}");
  this.subtype.add(SubType.AURA);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Neutral));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  
  // When Triclopean Sight enters the battlefield, untap enchanted creature.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new UntapEnchantedEffect()));
  
  // Enchanted creature gets +1/+1 and has vigilance.
  ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1,1, Duration.WhileOnBattlefield));
  ability.addEffect(new GainAbilityAttachedEffect(VigilanceAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield));
  this.addAbility(ability);
}
origin: magefree/mage

public NaturesChosen(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}");
  this.subtype.add(SubType.AURA);
  // Enchant creature you control
  TargetPermanent auraTarget = new TargetControlledCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // {0}: Untap enchanted creature. Activate this ability only during your turn and only once each turn.
  this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new GenericManaCost(0), 1, MyTurnCondition.instance));
  // Tap enchanted creature: Untap target artifact, creature, or land. Activate this ability only if enchanted creature is white and is untapped and only once each turn.
  Effect effect = new UntapTargetEffect();
  effect.setText("Untap target artifact, creature, or land");
  LimitedTimesPerTurnActivatedAbility ability2 = new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, effect, new TapAttachedCost(), 1, new AttachedToMatchesFilterCondition(filterWhiteUntappedCreature));
  ability2.addTarget(new TargetPermanent(filterPermanent));
  this.addAbility(ability2);
}
origin: magefree/mage

public PemminsAura(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}{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);
  // {U}: Untap enchanted creature.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new ManaCostsImpl("{U}")));
  // {U}: Enchanted creature gains flying until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FlyingAbility.getInstance(),
      AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
  // {U}: Enchanted creature gains shroud until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ShroudAbility.getInstance(),
      AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
  // {1}: Enchanted creature gets +1/-1 or -1/+1 until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PemminsAuraBoostEnchantedEffect(), new ManaCostsImpl("{1}")));
}
mage.abilities.effects.commonUntapEnchantedEffect<init>

Popular methods of UntapEnchantedEffect

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • startActivity (Activity)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • getApplicationContext (Context)
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • 21 Best IntelliJ Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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