congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • getContentResolver (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Collectors (java.util.stream)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 21 Best Atom Packages for 2021
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