Examples of TargetCardInYourGraveyard


Examples of mage.target.common.TargetCardInYourGraveyard

        this.expansionSetCode = "NPH";

        this.color.setWhite(true);

        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCreature));

        Mode mode = new Mode();
        mode.getEffects().add(new ReturnToHandTargetEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(filterArtifact));
        this.getSpellAbility().addMode(mode);

        mode = new Mode();
        mode.getTargets().add(new TargetCardInYourGraveyard(filterCreature));
        mode.getTargets().add(new TargetCardInYourGraveyard(filterArtifact));
        mode.getEffects().add(new RememberTheFallenEffect());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

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

        // {1}{W}: Return target artifact card with converted mana cost 1 or less from your graveyard to your hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(),new ManaCostsImpl("{1}{W}"));
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);

    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

        filter.add(new NamePredicate("Arachnus Web"));

        Card card = null;
        Zone zone = null;
        if (player.chooseUse(Outcome.Neutral, "Search your graveyard for Arachnus Web?", game)) {
            TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(filter);
            if (player.choose(Outcome.PutCardInPlay, player.getGraveyard(), target, game)) {
                card = game.getCard(target.getFirstTarget());
                if (card != null) {
                    zone = Zone.GRAVEYARD;
                }
            }
        }
        if (card == null) {
            TargetCardInLibrary target = new TargetCardInLibrary(filter);
            if (player.searchLibrary(target, game)) {
                card = game.getCard(target.getFirstTarget());
                if (card != null) {
                    zone = Zone.LIBRARY;
                }
            }
            player.shuffleLibrary(game);
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

        // Dirty
        // Return target card from your graveyard to your hand.
        getRightHalfCard().getColor().setGreen(true);
        getRightHalfCard().getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
        getRightHalfCard().getSpellAbility().addTarget(new TargetCardInYourGraveyard());

    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

        this.color.setGreen(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{G}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        Permanent permanent = game.getPermanent(source.getSourceId());
        if (player.getGraveyard().size() > 0) {

            TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(0, Integer.MAX_VALUE, new FilterCreatureCard("creature cards from your graveyard"));
            if (player.chooseTarget(Outcome.Benefit, target, source, game)) {
                int count = 0;
                for (UUID uuid : target.getTargets()) {
                    Card card = player.getGraveyard().get(uuid, game);
                    if (card != null) {
                        card.moveToExile(getId(), "Sutured Ghoul", source.getSourceId(), game);
                        if (permanent != null) {
                            permanent.imprint(card.getId(), game);
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

    public Reclaim(UUID ownerId) {
        super(ownerId, 191, "Reclaim", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{G}");
        this.expansionSetCode = "M12";
        this.color.setGreen(true);
        this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard());
    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

        // Extort (Whenever you cast a spell, you may pay {WB}. If you do, each opponent loses 1 life and you gain that much life.)
        this.addAbility(new ExtortAbility());

        // Whenever Treasury Thrull attacks, you may return target artifact, creature, or enchantment card from your graveyard to your hand.
        Ability ability = new AttacksTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), true);
        ability.addTarget(new TargetCardInYourGraveyard(filter));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

        this.getSpellAbility().addMode(mode);

        // or return target creature card with converted mana cost 1 or less from your graveyard to the battlefield.
        Mode mode2 = new Mode();
        mode2.getEffects().add(new ReturnFromGraveyardToBattlefieldTargetEffect());
        mode2.getTargets().add(new TargetCardInYourGraveyard(filter));
        this.getSpellAbility().addMode(mode2);


    }
View Full Code Here

Examples of mage.target.common.TargetCardInYourGraveyard

        // Choose one or both -
        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(2);
        // Return target enchantment card from your graveyard to your hand;
        this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCard));
        // and/or destroy target enchantment.
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetPermanent(filter));
        this.getSpellAbility().addMode(mode);
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.