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

How to use
SearchLibraryGraveyardPutInHandEffect
in
mage.abilities.effects.common.search

Best Java code snippets using mage.abilities.effects.common.search.SearchLibraryGraveyardPutInHandEffect (Showing top 19 results out of 315)

origin: magefree/mage

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

public VraskasScorn(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}");
  // Target opponent loses 4 life.
  this.getSpellAbility().addEffect(new LoseLifeTargetEffect(4));
  this.getSpellAbility().addTarget(new TargetOpponent());
  // You may search your library and/or graveyard for a card named Vraska, Scheming Gorgon, reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter)
      .setText("You may search your library and/or graveyard for a card named Vraska, Scheming Gorgon, reveal it, and put it into your hand. If you search your library this way, shuffle it"));
}
origin: magefree/mage

public AngrathsFury(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}{R}");
  // Destroy target creature.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Angrath's Fury deals 3 damage to target player.
  this.getSpellAbility().addEffect(new DamageTargetEffect(3).setTargetPointer(new SecondTargetPointer())
      .setText("{this} deals 3 damage to target player or planeswalker"));
  this.getSpellAbility().addTarget(new TargetPlayerOrPlaneswalker());
  // You may search your library and/or graveyard for a card named Angrath, Minotaur Pirate, reveal it, and put it into your hand.  If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter)
      .setText("You may search your library and/or graveyard for a card named Angrath, Minotaur Pirate, reveal it, and put it into your hand.  If you search your library this way, shuffle it"));
}
origin: magefree/mage

public SunBlessedMount(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{W}");
  this.subtype.add(SubType.DINOSAUR);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // When Sun-Blessed Mount enters the battlefield, you may search your library and/or graveyard for a card named Huatli, Dinosaur Knight, reveal it, then put it into your hand. If you searched your library this way, shuffle it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filter), true));
}
origin: magefree/mage

public GideonsResolve(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{W}");
  // When Gideon's Resolve enters the battlefield, you may search your library and/or graveyard for a card named Gideon, Martial Paragon,
  // reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filter), true));
  // Creature you control get +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield)));
}
origin: magefree/mage

public DomrisNodorog(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(5);
  this.toughness = new MageInt(2);
  // Trample
  this.addAbility(TrampleAbility.getInstance());
  // When Domri's Nodorog enters the battlefield, you may search your library and/or graveyard for a card named Domri, City Smasher, reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(
      new SearchLibraryGraveyardPutInHandEffect(filter, false, true)
  ));
}
origin: magefree/mage

public NiambiFaithfulHealer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.CLERIC);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // When Niambi, Faithful Healer enters the battlefield, you may search your library and/or graveyard for a card named Teferi, Timebender, reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filter), true));
}
origin: magefree/mage

public VisageOfBolas(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
  // When Visage of Bolas enters the battlefield, you may search your library and/or graveyard for a card named Nicol Bolas, the Deceiver, reveal it, and put it into your hand.  If you search your library this way, shuffle it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filter), true));
  // {t}: Add {U}, {B}, or {R}.
  this.addAbility(new BlueManaAbility());
  this.addAbility(new BlackManaAbility());
  this.addAbility(new RedManaAbility());
}
origin: magefree/mage

public AjanisAid(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}{W}");
  // When Ajani's Aid enters the battlefield, you may search your library and/or graveyard for a card named Ajani, Valiant Protector, reveal it,
  // and put it into your hand. If you search your library this way, shuffle it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filter), true));
  // Sacrifice Ajani's Aid: Prevent all combat damage a creature of your choice would deal this turn.
  Effect effect = new PreventNextDamageFromChosenSourceToYouEffect(Duration.EndOfTurn, new FilterCreaturePermanent("creature of your choice"), true);
  effect.setText("Prevent all combat damage a creature of your choice would deal this turn");
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new SacrificeSourceCost()));
}
origin: magefree/mage

public LilianasInfluence(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{B}");
  // Put a -1/-1 counter on each creature you don't control. You may search your library and/or graveyard for a card named Liliana, Death Wielder,
  // reveal it, and put it into your hand. If you search your library this way, shuffle it.
  getSpellAbility().addEffect(new AddCountersAllEffect(CounterType.M1M1.createInstance(1), filterCreatures));
  getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter));
}
origin: magefree/mage

public VerdantCrescendo(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}");
  // Search your library for a basic land card and put it onto the battlefield tapped.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, false));
  // Search your library and graveyard for a card named Nissa, Nature's Artisan, reveal it, and put it into your hand. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter, true));
}
origin: magefree/mage

public VraskasStoneglare(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{G}");
  // Destroy target creature. You gain life equal to its toughness. You may search your library and/or graveyard from a card named Vraska, Regal Gordon, reveal it, and put it in to your hand. If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new VraskasStoneglareEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(
      new SearchLibraryGraveyardPutInHandEffect(filter, false, true)
  );
}
origin: magefree/mage

public DovinsDismissal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}{U}");
  // Put up to one target tapped creature on top of its owner's library. You may search your library and/or graveyard for a card named Dovin, Architect of Law, reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
  this.getSpellAbility().addEffect(
      new SearchLibraryGraveyardPutInHandEffect(filter, false, true)
  );
  this.getSpellAbility().addTarget(new TargetPermanent(0, 1, filter2, false));
}
origin: magefree/mage

public LiberatingCombustion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{R}");
  // Liberating Combustion deals 6 damage to target creature.
  this.getSpellAbility().addEffect(new DamageTargetEffect(6));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  
  // You may search your library and/or graveyard for a card named Chandra, Pyrogenius, reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter));
}
origin: magefree/mage

public ChandrasOutburst(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}{R}");
  // Chandra's Outburst deals 4 damage to target player or planeswalker.
  this.getSpellAbility().addEffect(new DamageTargetEffect(4));
  this.getSpellAbility().addTarget(new TargetPlayerOrPlaneswalker());
  // Search your library and/or graveyard for a card named Chandra, Bold Pyromancer, reveal it, and put it into your hand. If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter));
}
origin: magefree/mage

public RhythmicWaterVortex(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}{U}");
  // Return up to two target creatures to their owner's hand.
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
  // Search your library and/or graveyard for a card named Mu Yanling, reveal it, and put it into your hand. If you searched your library this way, shuffle it.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter));
}
origin: magefree/mage

public RalsDispersal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}{U}");
  // Return target creature to its owner's hand. You may search you library and/or graveyard for a card named Ral, Caller of Storms, reveal it, and put it in to your hand. If you search your library this way, shuffle it.
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  this.getSpellAbility().addEffect(
      new SearchLibraryGraveyardPutInHandEffect(filter, false, true)
  );
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
origin: magefree/mage

public TezzeretsBetrayal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}{B}");
  // Destroy target creature.
  getSpellAbility().addEffect(new DestroyTargetEffect());
  getSpellAbility().addTarget(new TargetCreaturePermanent());
  // You may search your library and/or graveyard for a card named Tezzeret, Master of Metal, reveal it, and put it into your hand.
  // If you search your library this way, shuffle it.
  getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter));
}
origin: magefree/mage

public GraspingCurrent(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}");
  // Return up to two target creatures to their owner's hand.
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
  // Search your library and/or graveyard for a card named Jace, Ingenious Mind-Mage, reveal it, then put it into your hand. If you searched your library this way, shuffle it.
  this.getSpellAbility().addEffect(new SearchLibraryGraveyardPutInHandEffect(filter));
}
mage.abilities.effects.common.searchSearchLibraryGraveyardPutInHandEffect

Most used methods

  • <init>
  • setText

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Option (scala)
  • From CI to AI: The AI layer in your organization
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