congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ExileSourceUnlessPaysEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
ExileSourceUnlessPaysEffect
in
mage.abilities.effects.common

Best Java code snippets using mage.abilities.effects.common.ExileSourceUnlessPaysEffect (Showing top 3 results out of 315)

origin: magefree/mage

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

public DemonlordOfAshmouth(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}{B}");
  this.subtype.add(SubType.DEMON);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  this.addAbility(FlyingAbility.getInstance());
  // When Demonlord of Ashmouth enters the battlefield, exile it unless you sacrifice another creature.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new ExileSourceUnlessPaysEffect(new SacrificeTargetCost(new TargetControlledPermanent(filter)))));
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public BodySnatcher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{B}");
  this.subtype.add(SubType.MINION);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // When Body Snatcher enters the battlefield, exile it unless you discard a creature card.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new ExileSourceUnlessPaysEffect(new DiscardTargetCost(new TargetCardInHand(new FilterCreatureCard("a creature card"))))));
  // When Body Snatcher dies, exile Body Snatcher and return target creature card from your graveyard to the battlefield.
  Effect effect = new ReturnFromGraveyardToBattlefieldTargetEffect();
  effect.setText("and return target creature card from your graveyard to the battlefield");
  Ability ability = new DiesTriggeredAbility(new ExileSourceEffect(), false);
  ability.addEffect(effect);
  ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
  this.addAbility(ability);
}
mage.abilities.effects.commonExileSourceUnlessPaysEffect

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • 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.
  • ImageIO (javax.imageio)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Sublime Text for Python
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