Package mage.filter.common

Examples of mage.filter.common.FilterArtifactCard


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

        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), true);
        ability.addTarget(new TargetCardInYourGraveyard(new FilterArtifactCard("artifact card from your graveyard")));
        this.addAbility(ability);
    }
View Full Code Here


        this.color.setGreen(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(1);

        // Protection from artifacts
        this.addAbility(new ProtectionAbility(new FilterArtifactCard("artifacts")));
    }
View Full Code Here

        Player you = game.getPlayer(source.getControllerId());
        if (you == null) {
            return false;
        }
        Permanent arsenalThresher = game.getPermanent(source.getSourceId());
        FilterArtifactCard filter = new FilterArtifactCard();
        filter.add(new AnotherPredicate());
        if (you.chooseUse(Outcome.Benefit, "Do you want to reveal other artifacts in your hand?", game)) {
            Cards cards = new CardsImpl();
            if (you.getHand().count(filter, source.getSourceId(), source.getControllerId(), game) > 0) {
                TargetCardInHand target = new TargetCardInHand(0, Integer.MAX_VALUE, filter);
                if (you.choose(Outcome.Benefit, target, source.getSourceId(), game)) {
View Full Code Here

        this.color.setBlue(true);

        // As an additional cost to cast Tinker, sacrifice an artifact.
        this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
        // Search your library for an artifact card and put that card onto the battlefield. Then shuffle your library.
        TargetCardInLibrary target = new TargetCardInLibrary(new FilterArtifactCard());
        this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(target));
    }
View Full Code Here

        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Discard an artifact card: Fleshgrafter gets +2/+2 until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new DiscardCardCost(new FilterArtifactCard("an artifact card"))));
    }
View Full Code Here

        this.color.setBlue(true);

        // {U}, Discard an artifact card: Search your library for an artifact card with converted mana cost 1 or less, reveal that card, and put it into your hand. Then shuffle your library.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), new ManaCostsImpl("{U}"));
        ability.addCost(new DiscardCardCost(new FilterArtifactCard()));
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setWhite(true);

        this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(0, Integer.MAX_VALUE, new FilterArtifactCard("artifact cards from your graveyard")));
    }
View Full Code Here

    public TelJiladDefiance(UUID ownerId) {
        super(ownerId, 129, "Tel-Jilad Defiance", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{G}");
        this.expansionSetCode = "SOM";
        this.color.setGreen(true);
        this.getSpellAbility().addEffect(new GainProtectionFromTypeTargetEffect(Duration.EndOfTurn, new FilterArtifactCard("artifacts")));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
    }
View Full Code Here

          this.toughness = new MageInt(3);

        this.addAbility(FlyingAbility.getInstance());

        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect());
        TargetCard target = new TargetCardInYourGraveyard(new FilterArtifactCard("artifact card from your graveyard"));
        ability.addTarget(target);
        ability.addEffect(new RazorHippogriffGainLifeEffect());

        this.addAbility(ability);
    }
View Full Code Here

            if (cost instanceof PayVariableLoyaltyCost) {
                cmc = ((PayVariableLoyaltyCost) cost).getAmount();
            }
        }

        FilterArtifactCard filter = new FilterArtifactCard(new StringBuilder("artifact card with converted mana cost ").append(cmc).append(" or less").toString());
        filter.add(new ConvertedManaCostPredicate(ComparisonType.LessThan, cmc + 1));
        TargetCardInLibrary target = new TargetCardInLibrary(filter);

        if (player.searchLibrary(target, game)) {
            Card card = player.getLibrary().getCard(target.getFirstTarget(), game);
            if (card != null) {
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterArtifactCard

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.