Examples of SearchLibraryPutInPlayEffect


Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

    FilterCard filter = new FilterCard("Swamp, Mountain, or Forest");
    filter.getName().add("Swamp");
    filter.getName().add("Mountain");
    filter.getName().add("Forest");
    TargetCardInLibrary target = new TargetCardInLibrary(filter);
    addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
  }
View Full Code Here

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

  }

  public KnightOfTheWhiteOrchidAbility() {
    super(Zone.BATTLEFIELD, null, "When {this} enters the battlefield, if an opponent controls more lands than you, you may ", true);
    TargetCardInLibrary target = new TargetCardInLibrary(filter1);
    addEffect(new SearchLibraryPutInPlayEffect(target, false, Outcome.PutLandInPlay));
  }
View Full Code Here

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

  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

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

    TargetCardInLibrary target = new TargetCardInLibrary(new FilterLandCard());
    Costs costs = new CostsImpl();
    costs.add(new TapSourceCost());
    costs.add(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, false)));
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KnightOfTheReliquaryEffect()));
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(target, false, Outcome.PutLandInPlay), costs));
  }
View Full Code Here

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

class PrimevalTitanAbility extends TriggeredAbilityImpl<PrimevalTitanAbility> {

  public PrimevalTitanAbility() {
    super(Zone.BATTLEFIELD, null, true);
    TargetCardInLibrary target = new TargetCardInLibrary(2, new FilterLandCard());
    this.addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
  }
View Full Code Here

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

    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

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

  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

Examples of mage.abilities.effects.common.SearchLibraryPutInPlayEffect

    for (String subType: subTypes) {
      filter.getSubtype().add(subType);
    }
    filter.setScopeSubtype(ComparisonScope.Any);
    TargetCardInLibrary target = new TargetCardInLibrary(filter);
    addEffect(new SearchLibraryPutInPlayEffect(target, false, Outcome.PutLandInPlay));
  }
View Full Code Here

Examples of mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect

        for (String 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));
    }
View Full Code Here

Examples of mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect

        this.subtype.add("Nissa");
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(2)), false));

        this.color.setGreen(true);

        LoyaltyAbility ability1 = new LoyaltyAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(1, nissasChosenFilter)), 1);
        this.addAbility(ability1);

        LoyaltyAbility ability2 = new LoyaltyAbility(new NissaRevaneGainLifeEffect(), 1);
        this.addAbility(ability2);

        LoyaltyAbility ability3 = new LoyaltyAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, Integer.MAX_VALUE, elfFilter)), -7);
        this.addAbility(ability3);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.