Package mage.filter.common

Examples of mage.filter.common.FilterLandCard


    this.color.setGreen(true);
    this.subtype.add("Human");
    this.subtype.add("Knight");
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);
    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


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

  @Override
  public boolean chooseMulligan(Game game) {
    logger.fine("chooseMulligan");
    if (hand.size() < 6)
      return false;
    Set<Card> lands = hand.getCards(new FilterLandCard(), game);
    if (lands.size() < 2 || lands.size() > hand.size() - 2)
      return true;
    return false;
  }
View Full Code Here

    pass();
  }

  protected void playLand(Game game) {
    logger.fine("playLand");
    Set<Card> lands = hand.getCards(new FilterLandCard(), game);
    while (lands.size() > 0 && this.landsPlayed < this.landsPerTurn) {
      if (lands.size() == 1)
        this.playLand(lands.iterator().next(), game);
      else {
        playALand(lands, game);
View Full Code Here

        // You may play an additional land on each of your turns.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayAdditionalLandsControllerEffect(1, Duration.WhileOnBattlefield)));
        // Play with the top card of your library revealed.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayWithTheTopCardRevealedEffect()));
        // You may play the top card of your library if it's a land card.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayTheTopCardEffect(new FilterLandCard())));
    }
View Full Code Here

*/
public class RetraceAbility extends ActivatedAbilityImpl {

    public RetraceAbility(Cost cost, TimingRule timingRule) {
        super(Zone.GRAVEYARD, new RetraceEffect(), cost);
        super.addCost(new DiscardTargetCost(new TargetCardInHand(new FilterLandCard())));
        this.timing = timingRule;
        this.usesStack = false;
    }
View Full Code Here

    public ExpeditionMap(UUID ownerId) {
        super(ownerId, 201, "Expedition Map", Rarity.COMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "ZEN";

        // {2}, {tap}, Sacrifice Expedition Map: Search your library for a land card, reveal it, and put it into your hand. Then shuffle your library.
        TargetCardInLibrary target = new TargetCardInLibrary(new FilterLandCard());
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new SearchLibraryPutInHandEffect(target, true),
                new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
View Full Code Here

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // When Cartographer enters the battlefield, you may return target land card from your graveyard to your hand.
      Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), true);
      ability.addTarget(new TargetCardInYourGraveyard(new FilterLandCard()));
      this.addAbility(ability);
     
    }
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Target target = new TargetCardInHand(new FilterLandCard("land card"));
            if (target.canChoose(source.getSourceId(), source.getControllerId(), game)
                    && controller.choose(outcome, target, source.getSourceId(), game)) {
                Card card = game.getCard(target.getFirstTarget());
                if (card != null) {
                    controller.putOntoBattlefieldWithInfo(card, game, Zone.HAND, source.getSourceId(), tapped);
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // {tap}: You may put a land card from your hand onto the battlefield. Activate this ability only any time you could cast a sorcery.
        Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PutLandFromHandOntoBattlefieldEffect(), new TapSourceCost());
        ability.addTarget(new TargetCardInHand(0, 1, new FilterLandCard()));
        this.addAbility(ability);
       
    }
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterLandCard

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.