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

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

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

origin: magefree/mage

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

@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
  Player controller = game.getPlayer(source.getControllerId());
  if (controller != null) {
    new WishEffect(new FilterCard(), false).apply(game, source);
    this.discard();
    return true;
  }
  return false;
}
origin: magefree/mage

public CoaxFromTheBlindEternities(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
  // You may choose an Eldrazi card you own from outside the game or in exile, reveal that card, and put it into your hand.
  this.getSpellAbility().addEffect(new WishEffect(filter, true, true));
}
origin: magefree/mage

public GoldenWish(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}{W}");
  // You may choose an artifact or enchantment card you own from outside the game, reveal that card, and put it into your hand. 
  this.getSpellAbility().addEffect(new WishEffect(filter));
  // Exile Golden Wish.
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}
origin: magefree/mage

public GlitteringWish(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G}{W}");
  // You may choose a multicolored card you own from outside the game, reveal that card, and put it into your hand. 
  this.getSpellAbility().addEffect(new WishEffect(filter));
  // Exile Glittering Wish.
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}
origin: magefree/mage

public CunningWish(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
  // You may choose an instant card you own from outside the game, reveal that card, and put it into your hand.
  this.getSpellAbility().addEffect(new WishEffect(filter));
  // Exile Cunning Wish.
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}
origin: magefree/mage

public BurningWish(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}");
  // You may choose a sorcery card you own from outside the game, reveal that card, and put it into your hand.
  this.getSpellAbility().addEffect(new WishEffect(filter));
  // Exile Burning Wish.
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}
origin: magefree/mage

public LivingWish(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
  // You may choose a creature or land card you own from outside the game, reveal that card, and put it into your hand.
  this.getSpellAbility().addEffect(new WishEffect(filter));
  // Exile Living Wish.
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}
origin: magefree/mage

public DeathWish(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}{B}");
  // You may choose a card you own from outside the game and put it into your hand. 
  this.getSpellAbility().addEffect(new WishEffect(new FilterCard(), false));
  // You lose half your life, rounded up. 
  this.getSpellAbility().addEffect(new LoseHalfLifeEffect());
  // Exile Death Wish.
  this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
}
origin: magefree/mage

public MastermindsAcquisition(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}{B}");
  // Choose one - 
  // Search your library for a card and put that card into your hand. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
  
  // Choose a card you own from outside the game and put it into your hand.
  Mode mode = new Mode();
  mode.addEffect(new WishEffect(new FilterCard(), false));
  this.getSpellAbility().addMode(mode);
}
mage.abilities.effects.commonWishEffect

Most used methods

  • <init>
  • apply

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • findViewById (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
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