Package mage.abilities.costs.common

Examples of mage.abilities.costs.common.DiscardTargetCost


        // Trample
        this.addAbility(TrampleAbility.getInstance());

        // Discard a creature card: Put a +1/+1 counter on Lotleth Troll.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new DiscardTargetCost(new TargetCardInHand(filter))));

        // {B}: Regenerate Lotleth Troll.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
    }
View Full Code Here


        // Put a token that's a copy of target creature onto the battlefield.
        this.getSpellAbility().addEffect(new SpittingImageEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
       
        // Retrace
        this.addAbility(new RetraceAbility(new DiscardTargetCost(new TargetCardInHand(new FilterLandCard())), TimingRule.SORCERY));
       
    }
View Full Code Here

        this.expansionSetCode = "PCY";

        this.color.setBlue(true);

        // You may discard an Island card and another card rather than pay Foil's mana cost.
        Ability ability = new AlternativeCostSourceAbility(new DiscardTargetCost(new TargetCardInHand(filter)));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand(new FilterCard("another card"))));
        this.addAbility(ability);

        // Counter target spell.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
View Full Code Here

        super(ownerId, 1, "Abolish", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{W}{W}");
        this.expansionSetCode = "PCY";
        this.color.setWhite(true);

        // You may discard a Plains card rather than pay Abolish's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new DiscardTargetCost(new TargetCardInHand(filterCost))));

        // Destroy target artifact or enchantment.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(new FilterArtifactOrEnchantmentPermanent()));
    }
View Full Code Here

        // Escape Artist is unblockable.
        this.addAbility(new UnblockableAbility());
        // {U}, Discard a card: Return Escape Artist to its owner's hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{U}"));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.costs.common.DiscardTargetCost

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.