Package mage.filter.common

Examples of mage.filter.common.FilterBasicLandCard


    return new CultivateEffect(this);
  }

  @Override
  public boolean apply(Game game, Ability source) {
    TargetCardInLibrary target = new TargetCardInLibrary(0, 2, new FilterBasicLandCard());
    Player player = game.getPlayer(source.getControllerId());
    player.searchLibrary(target, game);
    if (target.getTargets().size() > 0) {
      Cards revealed = new CardsImpl();
      for (UUID cardId: (List<UUID>)target.getTargets()) {
View Full Code Here


    Permanent permanent = game.getPermanent(source.getFirstTarget());
    if (permanent != null) {
      Player player = game.getPlayer(permanent.getControllerId());
      if (permanent.moveToZone(Zone.EXILED, source.getId(), game, false)) {
        if (player.chooseUse(Outcome.PutCardInPlay, "Use Path to Exile effect?", game)) {
          TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
          player.searchLibrary(target, game);
          Card card = player.getLibrary().remove(target.getFirstTarget(), game);
          if (card != null) {
            if (card.putOntoBattlefield(game, Zone.LIBRARY, source.getId(), permanent.getControllerId())) {
              Permanent land = game.getPermanent(card.getId());
View Full Code Here

  public TerramorphicExpanseAbility() {
    super(Zone.BATTLEFIELD, null);
    addCost(new TapSourceCost());
    addCost(new SacrificeSourceCost());
    TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
    addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
  }
View Full Code Here

  public RampantGrowth(UUID ownerId){
    super(ownerId, 201, "Rampant Growth", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{1}{G}");
    this.expansionSetCode = "M10";
    this.color.setGreen(true);
    TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
    this.getSpellAbility().addTarget(target);
    this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(target, true));
  }
View Full Code Here

  public EvolvingWildsAbility() {
    super(Zone.BATTLEFIELD, null);
    addCost(new TapSourceCost());
    addCost(new SacrificeSourceCost());
    TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
    addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
  }
View Full Code Here

        this.expansionSetCode = "EXO";

        this.color.setWhite(true);

        // At the beginning of each player's upkeep, that player chooses target player who controls more lands than he or she does and is his or her opponent. The first player may search his or her library for a basic land card, put that card onto the battlefield, then shuffle his or her library.
        Effect effect = new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterBasicLandCard()), false, Outcome.PutLandInPlay);
        effect.setText("that player chooses target player who controls more lands than he or she does and is his or her opponent. The first player may search his or her library for a basic land card, put that card onto the battlefield, then shuffle his or her library");
        Ability ability = new BeginningOfUpkeepTriggeredAbility(effect, TargetController.ANY, true);
        ability.addTarget(new TargetPlayer(1, 1, false, filter));
        this.addAbility(ability);
    }
View Full Code Here

        super(ownerId, 167, "Khalni Heart Expedition", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}");
        this.expansionSetCode = "ZEN";
        this.color.setGreen(true);

        this.addAbility(new LandfallAbility(new AddCountersSourceEffect(CounterType.QUEST.createInstance()), true));
        TargetCardInLibrary target = new TargetCardInLibrary(0, 2, new FilterBasicLandCard());
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay),
                new RemoveCountersSourceCost(CounterType.QUEST.createInstance(3)));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
View Full Code Here

        // As an additional cost to cast Harrow, sacrifice a land.
        this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));

        // Search your library for up to two basic land cards and put them onto the battlefield. Then shuffle your library.
        TargetCardInLibrary target = new TargetCardInLibrary(0, 2, new FilterBasicLandCard());
        this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(target, false, Outcome.PutLandInPlay));
    }
View Full Code Here

    public EvolvingWildsAbility() {
        super(Zone.BATTLEFIELD, null);
        addCost(new TapSourceCost());
        addCost(new SacrificeSourceCost());
        TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
        addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
    }
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Permanent permanent = (Permanent) game.getPermanentOrLKIBattlefield(source.getFirstTarget()); // if indestructible effect should work also
        if (permanent != null) {
            Player player = game.getPlayer(permanent.getControllerId());
            if (player.chooseUse(Outcome.PutLandInPlay, "Do you wish to search for a basic land, put it onto the battlefield and then shuffle your library?", game)) {
                TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
                if (player.searchLibrary(target, game)) {
                    Card card = player.getLibrary().getCard(target.getFirstTarget(), game);
                    if (card != null)  {
                        player.putOntoBattlefieldWithInfo(card, game, Zone.LIBRARY, source.getSourceId());
                    }
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterBasicLandCard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.