Examples of ExileFromGraveCost


Examples of mage.abilities.costs.common.ExileFromGraveCost

        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DestroyTargetEffect(),
                new PermanentsOnTheBattlefieldCondition(filterCondition),"If you control a Swamp, destroy target nonblack creature"));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filterTarget) );

        // Splice onto Arcane-Exile four cards from your graveyard.
        this.addAbility(new SpliceOntoArcaneAbility(new ExileFromGraveCost(new TargetCardInYourGraveyard(4,4, new FilterCard("cards")))));
       

    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

        this.color.setBlue(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(5);

        // As an additional cost to cast Makeshift Mauler, exile a creature card from your graveyard.
        this.getSpellAbility().addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard"))));
    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

        this.subtype.add("Assassin");
        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
        ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(filter)));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

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

        // {T}, Exile a Treefolk card from your graveyard: Search your library for up to two Forest cards and put them onto the battlefield tapped. Then shuffle your library.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(2, filterForest), true, Outcome.PutLandInPlay), new TapSourceCost());
        ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(filterTreefolk)));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

        // {W}{U}, {tap}, Exile a creature card from your graveyard: Put a 1/1 white Spirit creature token with flying onto the battlefield.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new CreateTokenEffect(new SpiritWhiteToken()),
                new ManaCostsImpl("{W}{U}"));
        ability.addCost(new TapSourceCost());
        ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(filter)));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

        Effect effect = new BoostTargetEffect(xValue,xValue,Duration.EndOfTurn);
        effect.setText("Target creature gets -X/-X until end of turn");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{X}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreaturePermanent());
        ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(1,1,new FilterCard("cards from your graveyard")), "Exile X cards from your graveyard"));
        this.addAbility(ability);

    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

    public void adjustCosts(Ability ability, Game game) {
        if (ability instanceof SimpleActivatedAbility) {
            int xValue = ability.getManaCostsToPay().getX();
            for(Cost cost: ability.getCosts()) {
                if (cost instanceof ExileFromGraveCost) {
                    ExileFromGraveCost exileCost = (ExileFromGraveCost) cost;
                    for(Target target: exileCost.getTargets()) {
                        if (target instanceof TargetCardInYourGraveyard) {
                            target.setMaxNumberOftargets(xValue);
                            target.setMinNumberOfTargets(xValue);
                        }
                    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

        this.color.setBlue(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(6);

        // As an additional cost to cast Skaab Ruinator, exile three creature cards from your graveyard.
        this.getSpellAbility().addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(3, 3, new FilterCreatureCard("creature card from your graveyard"))));

        this.addAbility(FlyingAbility.getInstance());
        // You may cast Skaab Ruinator from your graveyard.
        this.addAbility(new SkaabRuinatorAbility(new ManaCostsImpl("{1}{U}{U}"), TimingRule.INSTANT));
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

class SkaabRuinatorAbility extends ActivatedAbilityImpl {

    public SkaabRuinatorAbility(ManaCosts costs, TimingRule timingRule) {
        super(Zone.GRAVEYARD, new SkaabRuinatorEffect(), costs);
        this.timing = TimingRule.SORCERY;
        this.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(3, 3, new FilterCreatureCard("creature card from your graveyard"))));
        this.usesStack = false;
    }
View Full Code Here

Examples of mage.abilities.costs.common.ExileFromGraveCost

        this.color.setBlue(true);
        this.power = new MageInt(6);
        this.toughness = new MageInt(9);

        // As an additional cost to cast Skaab Goliath, exile two creature cards from your graveyard.
        this.getSpellAbility().addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(2, 2, new FilterCreatureCard("creature card from your graveyard"))));
        this.addAbility(TrampleAbility.getInstance());
    }
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.