Package mage.abilities.costs.common

Examples of mage.abilities.costs.common.DiscardTargetCost


        super(ownerId, 161, "Slumbering Tora", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{3}");
        this.expansionSetCode = "BOK";
        // {2}, Discard a Spirit or Arcane card: Slumbering Tora becomes an X/X Cat artifact creature until end of turn,
        // where X is the discarded card's converted mana cost.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SlumberingToraEffect(), new ManaCostsImpl("{2}"));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand(filter)));
        this.addAbility(ability);
    }
View Full Code Here


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

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}"));
        ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
        this.addAbility(ability);
    }
View Full Code Here

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ControlEnchantedEffect()));
       
        // Discard two cards: Soul Ransom's controller sacrifices it, then draws two cards. Only any opponent may activate this ability.
        Effect effect = new SacrificeSourceEffect();
        effect.setText("{this}'s controller sacrifices it");
        SimpleActivatedAbility ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect , new DiscardTargetCost(new TargetCardInHand(2,2, new FilterCard("two cards"))));
        effect = new DrawCardSourceControllerEffect(2);
        effect.setText("Then draws two cards. Only any opponent may activate this ability");
        ability2.addEffect(effect);
        ability2.setMayActivate(TargetController.OPPONENT);
        this.addAbility(ability2);
View Full Code Here

}

class MoltenTailMasticoreAbility extends TriggeredAbilityImpl {
    public MoltenTailMasticoreAbility() {
        super(Zone.BATTLEFIELD, new SacrificeSourceUnlessPaysEffect(new DiscardTargetCost(new TargetCardInHand())));
    }
View Full Code Here

        this.expansionSetCode = "ODY";

        this.color.setRed(true);

        // As an additional cost to cast Acceptable Losses, discard a card at random.
        this.getSpellAbility().addCost(new DiscardTargetCost(new TargetCardInHand(), true));
        // Acceptable Losses deals 5 damage to target creature.
        this.getSpellAbility().addEffect(new DamageTargetEffect(5));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

        this.addAbility(ability);
       
        // Enchanted land has "{tap}, Discard a card: Gain control of target creature until end of turn."
        Ability controlAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.EndOfTurn), new TapSourceCost());
        controlAbility.addTarget(new TargetCreaturePermanent());
        controlAbility.addCost(new DiscardTargetCost(new TargetCardInHand()));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(controlAbility, AttachmentType.AURA,
                Duration.WhileOnBattlefield, "Enchanted land has \"{t}, Discard a card: Gain control of target creature until end of turn.\"")));
    }
View Full Code Here

        // <i>({BR} can be paid with either {B} or {R}.)</i>
        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Avatar of Discord enters the battlefield, sacrifice it unless you discard two cards.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new DiscardTargetCost(new TargetCardInHand(2, new FilterCard("two cards"))))));
    }
View Full Code Here

        this.toughness = new MageInt(1);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Discard a card: Pulsating Illusion gets +4/+4 until end of turn. Activate this ability only once each turn.
        this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, 4, Duration.EndOfTurn), new DiscardTargetCost(new TargetCardInHand())));
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // Discard a card: Wild Mongrel gets +1/+1 and becomes the color of your choice until end of turn.
        Effect effect = new BoostSourceEffect(1, 1, Duration.EndOfTurn);
        effect.setText("{this} gets +1/+1");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new DiscardTargetCost(new TargetCardInHand()));
        ability.addEffect(new ChangeColorEffect());
        this.addAbility(ability);
    }
View Full Code Here

        // Put a 5/5 blue and red Elemental creature token with flying onto the battlefield.
        this.getSpellAbility().addEffect(new CreateTokenEffect(new ElementalToken()));
       
        // Retrace
        this.addAbility(new RetraceAbility(new DiscardTargetCost(new TargetCardInHand(new FilterLandCard())), TimingRule.SORCERY));
       
    }
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.