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

How to use
FetchLandActivatedAbility
in
mage.abilities.common

Best Java code snippets using mage.abilities.common.FetchLandActivatedAbility (Showing top 17 results out of 315)

origin: magefree/mage

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

public FetchLandActivatedAbility(boolean withDamage, Set<SubType> subtypes) {
  super(Zone.BATTLEFIELD, null);
  addCost(new TapSourceCost());
  if (withDamage) {
    addCost(new PayLifeCost(1));
  }
  addCost(new SacrificeSourceCost());
  FilterCard filter = new FilterCard(subTypeNames(subtypes));
  filter.add(new CardTypePredicate(CardType.LAND));
  List<Predicate<MageObject>> subtypePredicates = new ArrayList<>();
  for (SubType subtype : subtypes) {
    subtypePredicates.add(new SubtypePredicate(subtype));
  }
  filter.add(Predicates.or(subtypePredicates));
  TargetCardInLibrary target = new TargetCardInLibrary(filter);
  addEffect(new SearchLibraryPutInPlayEffect(target, false, true, Outcome.PutLandInPlay));
}
origin: magefree/mage

public MarshFlats(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  this.frameColor = new ObjectColor("WB");
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.SWAMP, SubType.PLAINS)));
}
origin: magefree/mage

public PollutedDelta(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.frameColor = new ObjectColor("UB");
  // {tap}, Pay 1 life, Sacrifice Polluted Delta: Search your library for an Island or Swamp card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.ISLAND, SubType.SWAMP)));
}
origin: magefree/mage

public WoodedFoothills(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.frameColor = new ObjectColor("RG");
  // {tap}, Pay 1 life, Sacrifice Wooded Foothills: Search your library for a Mountain or Forest card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.MOUNTAIN, SubType.FOREST)));
}
origin: magefree/mage

public WindsweptHeath(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.frameColor = new ObjectColor("GW");
  // {tap}, Pay 1 life, Sacrifice Windswept Heath: Search your library for a Forest or Plains card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.FOREST, SubType.PLAINS)));
}
origin: magefree/mage

public VerdantCatacombs(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  this.frameColor = new ObjectColor("BG");
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.FOREST, SubType.SWAMP)));
}
origin: magefree/mage

public FloodedStrand(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.frameColor = new ObjectColor("UW");
  // {tap}, Pay 1 life, Sacrifice Flooded Strand: Search your library for a Plains or Island card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.PLAINS, SubType.ISLAND)));
}
origin: magefree/mage

public ScaldingTarn(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  this.frameColor = new ObjectColor("UR");
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.ISLAND, SubType.MOUNTAIN)));
}
origin: magefree/mage

public AridMesa(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  this.frameColor = new ObjectColor("WR");
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.MOUNTAIN, SubType.PLAINS)));
}
origin: magefree/mage

public MistyRainforest(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  this.frameColor = new ObjectColor("UG");
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.FOREST, SubType.ISLAND)));
}
origin: magefree/mage

public BloodstainedMire(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.frameColor = new ObjectColor("RB");
  // {tap}, Pay 1 life, Sacrifice Bloodstained Mire: Search your library for a Swamp or Mountain card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(EnumSet.of(SubType.SWAMP,SubType.MOUNTAIN)));
}
origin: magefree/mage

public FloodPlain(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Flood Plain enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {tap}, Sacrifice Flood Plain: Search your library for a Plains or Island card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(false, EnumSet.of(SubType.PLAINS, SubType.ISLAND)));
}
origin: magefree/mage

public MountainValley(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Mountain Valley enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {tap}, Sacrifice Mountain Valley: Search your library for a Mountain or Forest card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(false, EnumSet.of(SubType.MOUNTAIN, SubType.FOREST)));
}
origin: magefree/mage

public BadRiver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Bad River enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {tap}, Sacrifice Bad River: Search your library for an Island or Swamp card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(false, EnumSet.of(SubType.ISLAND, SubType.SWAMP)));
}
origin: magefree/mage

public RockyTarPit(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Rocky Tar Pit enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {tap}, Sacrifice Rocky Tar Pit: Search your library for a Swamp or Mountain card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(false, EnumSet.of(SubType.SWAMP, SubType.MOUNTAIN)));
}
origin: magefree/mage

public Grasslands(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  // Grasslands enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {tap}, Sacrifice Grasslands: Search your library for a Forest or Plains card and put it onto the battlefield. Then shuffle your library.
  this.addAbility(new FetchLandActivatedAbility(false, EnumSet.of(SubType.FOREST, SubType.PLAINS)));
}
mage.abilities.commonFetchLandActivatedAbility

Most used methods

  • <init>
  • addCost
  • addEffect
  • subTypeNames

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 21 Best IntelliJ Plugins
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