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

How to use
mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect
constructor

Best Java code snippets using mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect.<init> (Showing top 20 results out of 315)

origin: magefree/mage

public NaturalConnection(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{G}");
  // Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
  TargetCardInLibrary target = new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND);
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(target, true));
}
origin: magefree/mage

public FontOfFertility(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{G}");
  // {1}{G}, Sacrifice Font of Fertility: Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
  TargetCardInLibrary target = new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND);
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay), new ManaCostsImpl("{1}{G}"));
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public NaturesLore(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{G}");
  // Search your library for a Forest card and put that card onto the battlefield. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), false, true));
}
origin: magefree/mage

public SpoilsOfVictory(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{G}");
  // Search your library for a Plains, Island, Swamp, Mountain, or Forest card and put that card onto the battlefield. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), false, Outcome.PutLandInPlay));
}
origin: magefree/mage

public CircuitousRoute(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}");
  // Search your library for up to two basic lands and/or Gates and put them onto the battlefield tapped.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(
      new TargetCardInLibrary(0, 2, filter), true
  ));
}
origin: magefree/mage

public WoodElves(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.SCOUT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // When Wood Elves enters the battlefield, search your library for a Forest card and put that card onto the battlefield. Then shuffle your library.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), false, true)));
}
origin: magefree/mage

public OnduGiant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
  this.subtype.add(SubType.GIANT);
  this.subtype.add(SubType.DRUID);
  this.power = new MageInt(2);
  this.toughness = new MageInt(4);
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true), true));
}
origin: magefree/mage

public WildWanderer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.DRUID);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // When Wild Wanderer enters the battlefield, you may search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true)));
}
origin: magefree/mage

public WayfarersBauble(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
  // {2}, {tap}, Sacrifice Wayfarer's Bauble: Search your library for a basic land card and put that card onto the battlefield tapped. Then shuffle your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
      new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND),true, true, Outcome.PutLandInPlay), new GenericManaCost(2));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public BantPanorama(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {T}, Sacrifice Bant Panorama: Search your library for a basic Forest, Plains, or Island card and put it onto the battlefield tapped. Then shuffle your library.
  TargetCardInLibrary target = new TargetCardInLibrary(filter);
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public CateranPersuader(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{B}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.MERCENARY);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // {1}, {T}: Search your library for a Mercenary permanent card with converted mana cost 1 or less and put it onto the battlefield. Then shuffle your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)), new TapSourceCost());
  ability.addManaCost(new GenericManaCost(1));
  this.addAbility(ability);
}
origin: magefree/mage

public CateranBrute(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.HORROR);
  this.subtype.add(SubType.MERCENARY);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);

  // {2}, {T}: Search your library for a Mercenary permanent card with converted mana cost 2 or less and put it onto the battlefield. Then shuffle your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)), new TapSourceCost());
  ability.addManaCost(new GenericManaCost(2));
  this.addAbility(ability);
}
origin: magefree/mage

public PrimevalTitan(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}");
  this.subtype.add(SubType.GIANT);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Trample
  this.addAbility(TrampleAbility.getInstance());
  // Whenever Primeval Titan enters the battlefield or attacks, you may search your library for up to two land cards, put them onto the battlefield tapped, then shuffle your library.
  this.addAbility(new EntersBattlefieldOrAttacksSourceTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, 2, new FilterLandCard("land cards")), true, Outcome.PutLandInPlay), true));
}
origin: magefree/mage

public ExplosiveVegetation(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}");
  // Search your library for up to two basic land cards and put them onto the battlefield tapped. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, 2, new FilterBasicLandCard("basic land cards")), true));
}
origin: magefree/mage

public EverbarkShaman(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.TREEFOLK);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(3);
  this.toughness = new MageInt(5);
  // {T}, Exile a Treefolk card from your graveyard: Search your library for up to two Forest cards and put them onto the battlefield tapped. Then shuffle your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(2, filterForest), true, Outcome.PutLandInPlay), new TapSourceCost());
  ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(filterTreefolk)));
  this.addAbility(ability);
}
origin: magefree/mage

public BogGlider(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.HUMAN, SubType.MERCENARY);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // {T}, Sacrifice a land: Search your library for a Mercenary permanent card with converted mana cost 2 or less and put it onto the battlefield. Then shuffle your library.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)), new TapSourceCost());
  ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(landFilter)));
this.addAbility(ability);
}
origin: magefree/mage

public FrenziedTilling(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{R}{G}");
  // Destroy target land. Search your library for a basic land card and put that card onto the battlefield tapped. Then shuffle your library.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetLandPermanent());
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true));
}
origin: magefree/mage

public DefenseOfTheHeart(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{G}");
  // At the beginning of your upkeep, if an opponent controls three or more creatures, sacrifice Defense of the Heart, search your library for up to two creature cards, and put those cards onto the battlefield. Then shuffle your library.
  TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, false);
  ability.addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, 2, new FilterCreatureCard()), false, Outcome.PutLandInPlay));
  DefenseOfTheHeartCondition contition = new DefenseOfTheHeartCondition();
  this.addAbility(new ConditionalInterveningIfTriggeredAbility(ability, contition, "At the beginning of your upkeep, if an opponent controls three or more creatures, sacrifice {this}, search your library for up to two creature cards, and put those cards onto the battlefield. Then shuffle your library"));
}
origin: magefree/mage

public ThunderherdMigration(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
  // As an additional cost to cast Thunderherd Migration, reveal a Dinosaur card from your hand or pay {1}.
  this.getSpellAbility().addCost(new OrCost(
      new RevealTargetFromHandCost(new TargetCardInHand(filter)),
      new GenericManaCost(1),
      "reveal a Dinosaur card from your hand or pay {1}"));
  // Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true));
}
origin: magefree/mage

public Tinker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
  // As an additional cost to cast Tinker, sacrifice an artifact.
  this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledPermanent(new FilterControlledArtifactPermanent("an artifact"))));
  // Search your library for an artifact card and put that card onto the battlefield. Then shuffle your library.
  this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterArtifactCard("an artifact card"))));
}
mage.abilities.effects.common.searchSearchLibraryPutInPlayEffect<init>

Popular methods of SearchLibraryPutInPlayEffect

  • setText
  • apply
  • getTargets

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Reference (javax.naming)
  • JButton (javax.swing)
  • Option (scala)
  • Github Copilot alternatives
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