Package mage.abilities.costs.common

Examples of mage.abilities.costs.common.DiscardCardCost


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

        // {2}{B}, Discard a card: Face of Fear gains fear until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FearAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
                ability.addCost(new DiscardCardCost(true));
                this.addAbility(ability);
    }
View Full Code Here


        this.addAbility(ability);


        // Enchanted land has "{T}, Discard a card: Draw a card."
        Ability gainAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new TapSourceCost());
        gainAbility.addCost(new DiscardCardCost());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(gainAbility, AttachmentType.AURA)));
       
    }
View Full Code Here

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

        // {B}, Discard a card: Fledgling Imp gains flying until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{B}"));
        ability.addCost(new DiscardCardCost(true));
        this.addAbility(ability);
    }
View Full Code Here

        this.toughness = new MageInt(5);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Discard a card: Prognostic Sphinx gains hexproof until end of turn. Tap it.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn), new DiscardCardCost());
        Effect effect = new TapSourceEffect();
        effect.setText("Tap it");
        ability.addEffect(effect);
        this.addAbility(ability);
        // Whenever Prognostic Sphinx attacks, scry 3.</i>
View Full Code Here

        // Hellbent - Gathan Raiders gets +2/+2 as long as you have no cards in hand.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(
                new BoostSourceEffect(2,2,Duration.WhileOnBattlefield), HellbentCondition.getInstance(),
                "<i>Hellbent</i> - {this} gets +2/+2 as long as you have no cards in hand")));
        // Morph-Discard a card.
        this.addAbility(new MorphAbility(this, new DiscardCardCost()));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // First strike
        this.addAbility(FirstStrikeAbility.getInstance());
        // Discard a card: Resilient Wanderer gains protection from the color of your choice until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorSourceEffect(), new DiscardCardCost());
        this.addAbility(ability);
    }
View Full Code Here

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

        // When Minotaur Explorer enters the battlefield, sacrifice it unless you discard a card at random.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new DiscardCardCost(true))));
    }
View Full Code Here

        // Reach
        this.addAbility(ReachAbility.getInstance());
        // {G}, Discard a card: Krosan Archer gets +0/+2 until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0,2, Duration.EndOfTurn), new ManaCostsImpl("{G}"));
        ability.addCost(new DiscardCardCost());
        this.addAbility(ability);
    }
View Full Code Here

        // {R}, {tap}, Discard a card: Destroy target blue permanent.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{R}"));
        ability.addTarget(new TargetPermanent(filter));
        ability.addCost(new TapSourceCost());
        ability.addCost(new DiscardCardCost());       
        this.addAbility(ability);
       
        // {1}{R}, {tap}, Discard a card: Jaya Ballard, Task Mage deals 3 damage to target creature or player. A creature dealt damage this way can't be regenerated this turn.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new ManaCostsImpl("{1}{R}"));
        ability.addTarget(new TargetCreatureOrPlayer());
        ability.addCost(new TapSourceCost());
        ability.addCost(new DiscardCardCost());
        ability.addEffect(new CantRegenerateEffect());
        this.addAbility(ability);
        this.addWatcher(new DamagedByWatcher());               
       
        // {5}{R}{R}, {tap}, Discard a card: Jaya Ballard deals 6 damage to each creature and each player.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(6), new ManaCostsImpl("{5}{R}{R}"));
        ability.addCost(new TapSourceCost());
        ability.addCost(new DiscardCardCost());       
        this.addAbility(ability);
       
    }
View Full Code Here

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

        // {G}, Discard a card: Crashing Centaur gains trample until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(),Duration.EndOfTurn), new ManaCostsImpl("{G}"));
        ability.addCost(new DiscardCardCost());
        this.addAbility(ability);
       
        // Threshold - As long as seven or more cards are in your graveyard, Crashing Centaur gets +2/+2 and has shroud.
        Ability thresholdAbility = new SimpleStaticAbility(
                Zone.BATTLEFIELD,
View Full Code Here

TOP

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

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.