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

How to use
mage.abilities.common.BecomesTargetAttachedTriggeredAbility
constructor

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

origin: magefree/mage

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

public IllusionaryArmor(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{4}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant Creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
  this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
  // Enchanted creature gets +4/+4.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(4, 4, Duration.WhileOnBattlefield)));
  // When enchanted creature becomes the target of a spell or ability, sacrifice Illusionary Armor.
  this.addAbility(new BecomesTargetAttachedTriggeredAbility(new SacrificeSourceEffect()));
}
origin: magefree/mage

public IceCage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature can't attack or block, and its activated abilities can't be activated.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockAttackActivateAttachedEffect()));
  // When enchanted creature becomes the target of a spell or ability, destroy Ice Cage.
  this.addAbility(new BecomesTargetAttachedTriggeredAbility(new DestroySourceEffect()));
}
origin: magefree/mage

public SleepingPotion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // When Sleeping Potion enters the battlefield, tap enchanted creature.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new TapEnchantedEffect()));
  // Enchanted creature doesn't untap during its controller's untap step.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepEnchantedEffect()));
  // When enchanted creature becomes the target of a spell or ability, sacrifice Sleeping Potion.
  this.addAbility(new BecomesTargetAttachedTriggeredAbility(new SacrificeSourceEffect()));
}
mage.abilities.commonBecomesTargetAttachedTriggeredAbility<init>

Popular methods of BecomesTargetAttachedTriggeredAbility

    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
    • getSupportFragmentManager (FragmentActivity)
    • Menu (java.awt)
    • URI (java.net)
      A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
    • NumberFormat (java.text)
      The abstract base class for all number formats. This class provides the interface for formatting and
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Top plugins for Android Studio
    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