Package mage.target.common

Examples of mage.target.common.TargetCardInASingleGraveyard


        // {1}, Reveal X black cards from your hand, Sacrifice Martyr of Bones: Exile up to X target cards from a single graveyard.
        Effect effect = new ExileTargetEffect(null, null, Zone.GRAVEYARD);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new GenericManaCost(1));
        ability.addCost(new RevealVariableBlackCardsFromHandCost());
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCardInASingleGraveyard(0, 1, new FilterCard("cards in a single graveyard")));
        this.addAbility(ability);
    }
View Full Code Here


                if (cost instanceof RevealVariableBlackCardsFromHandCost) {
                    amount = ((VariableCost) cost).getAmount();
                }
            }
            ability.getTargets().clear();
            ability.addTarget(new TargetCardInASingleGraveyard(0, amount, new FilterCard()));
        }
    }
View Full Code Here

        this.color.setGreen(true);

        // {1}, Exile two creature cards from a single graveyard: Put a 1/1 green Saproling creature token onto the battlefield.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SaprolingToken()), new GenericManaCost(1));
        ability.addCost(new ExileFromGraveCost(new TargetCardInASingleGraveyard(2,2, new FilterCreatureCard("two creature cards from a single graveyard"))));
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setGreen(true);

        // Shuffle Serene Remembrance and up to three target cards from a single graveyard into their owners' libraries.
        this.getSpellAbility().addEffect(new SereneRemembranceEffect());
        this.getSpellAbility().addTarget(new TargetCardInASingleGraveyard(0,3,new FilterCard("up to three target cards from a single graveyard")));
       
    }
View Full Code Here

        this.color.setBlack(true);

        // Exile up to four target cards from a single graveyard.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInASingleGraveyard(0, 4, new FilterCard("cards")));
        // Transmute {1}{B}{B}
        this.addAbility(new TransmuteAbility("{1}{B}{B}"));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // When you cycle Grixis Sojourners or it dies, you may exile target card from a graveyard.
        Ability ability1 = new CycleTriggeredAbility(new ExileTargetEffect(), true);
        Ability ability2 = new DiesTriggeredAbility(new ExileTargetEffect(), true);
        ability1.addTarget(new TargetCardInASingleGraveyard(1, 1, new FilterCard()));
        ability2.addTarget(new TargetCardInASingleGraveyard(1, 1, new FilterCard()));
        this.addAbility(ability1);
        this.addAbility(ability2);
       
        // Cycling {2}{B}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{B}")));
View Full Code Here

        this.toughness = new MageInt(1);

        // {2}{B}, {T}: Exile up to three target cards from a single graveyard.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RagDealerExileEffect(), new ManaCostsImpl("{2}{B}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCardInASingleGraveyard(0, 3, new FilterCard("up to three target cards from a single graveyard")));
        this.addAbility(ability);
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // {1}{B}, Sacrifice Famished Ghoul: Exile up to two target cards from a single graveyard.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect("Exile up to two target cards from a single graveyard"), new ManaCostsImpl("{1}{B}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCardInASingleGraveyard(0, 2, new FilterCard()));
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetCardInASingleGraveyard

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.