Tabnine Logo
mage.abilities.effects.common.search
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

public SearchLibraryPutInHandOrOnBattlefieldEffect(TargetCardInLibrary target, boolean revealCards, boolean forceShuffle, String rulePrefix, String nameToPutOnBattlefield) {
  super(target, Outcome.DrawCard);
  this.revealCards = revealCards;
  this.forceShuffle = forceShuffle;
  this.rulePrefix = rulePrefix;
  this.nameToPutOnBattlefield = nameToPutOnBattlefield;
  setText();
}
origin: magefree/mage

public SearchLibraryPutInHandEffect(TargetCardInLibrary target, boolean revealCards, boolean forceShuffle, String rulePrefix) {
  super(target, Outcome.DrawCard);
  this.revealCards = revealCards;
  this.forceShuffle = forceShuffle;
  this.rulePrefix = rulePrefix;
  setText();
}
origin: magefree/mage

  @Override
  public String getText(Mode mode) {
    return "Name a nonland card. " + super.getText(mode);
  }
}
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

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

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

public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, Outcome outcome) {
  super(target, outcome);
  this.tapped = tapped;
  this.forceShuffle = forceShuffle;
  setText();
}
origin: magefree/mage

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

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

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

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

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

public SearchLibraryPutOnLibraryEffect(TargetCardInLibrary target, boolean reveal, boolean forceShuffle) {
  super(target, Outcome.DrawCard);
  this.reveal = reveal;
  this.forceShuffle = forceShuffle;
  setText();
}
origin: magefree/mage

public SearchLibraryPutInPlayTargetPlayerEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, Outcome outcome, boolean ownerIsController) {
  super(target, outcome);
  this.tapped = tapped;
  this.forceShuffle = forceShuffle;
  this.ownerIsController = ownerIsController;
  setText();
}
origin: magefree/mage

@Override
public String getText(Mode mode) {
  return "Name a creature card. " + super.getText(mode);
}
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 DemonicTutor(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{B}");
  // Search your library for a card and put that card into your hand. Then shuffle your library.
  TargetCardInLibrary target = new TargetCardInLibrary();
  this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(target));
}
origin: magefree/mage

public SearchLibraryPutOnLibraryEffect(TargetCardInLibrary target) {
  this(target, false, true);
  setText();
}
origin: magefree/mage

@Override
public String getText(Mode mode) {
  StringBuilder sb = new StringBuilder();
  sb.append("Exile target enchantment. If the exiled card is a God card, ");
  sb.append(super.getText(mode));
  return sb.toString();
}
origin: magefree/mage

public LostAuramancersAbility() {
  super(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterEnchantmentCard())));
}
mage.abilities.effects.common.search

Most used classes

  • SearchLibraryGraveyardPutInHandEffect
  • SearchLibraryPutInHandEffect
  • SearchLibraryPutInHandOrOnBattlefieldEffect
  • SearchLibraryPutInPlayEffect
  • SearchLibraryPutInPlayTargetPlayerEffect
  • SearchLibraryWithLessCMCPutInPlayEffect,
  • SearchTargetGraveyardHandLibraryForCardNameAndExileEffect
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