Package mage.abilities.effects.common.discard

Examples of mage.abilities.effects.common.discard.DiscardTargetEffect


        this.toughness = new MageInt(1);
        this.flipCard = true;
        this.flipCardName = "Stabwhisker the Odious";

        // {1}{B}, {tap}: Target opponent discards a card. Then if that player has no cards in hand, flip Nezumi Shortfang.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{1}{B}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetOpponent());
        ability.addEffect(new ConditionalOneShotEffect(
                    new FlipSourceEffect(new StabwhiskerTheOdious()),
                    new CardsInTargetOpponentHandCondition(CardsInTargetOpponentHandCondition.CountType.FEWER_THAN, 1),
View Full Code Here


        this.subtype.add("Shaman");
    this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        // {B}, Sacrifice a creature: Target player discards a card. Activate this ability only any time you could cast a sorcery.
        Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1),new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        ability.addCost(new ManaCostsImpl("{B}"));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
        this.addAbility(new DevourAbility(DevourFactor.Devour2));

        // When Tar Fiend enters the battlefield, target player discards a card for each creature it devoured.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DiscardTargetEffect(new DevouredCreaturesCount()));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "CON";

        this.color.setBlack(true);

        // Domain - Target player discards a card for each basic land type among lands you control.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(new DomainValue()));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

        this.expansionSetCode = "5DN";

        this.color.setBlack(true);

        // Target player discards two cards.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
        this.getSpellAbility().addTarget(new TargetPlayer());
        // Scry 2.
        this.getSpellAbility().addEffect(new ScryEffect(2));
    }
View Full Code Here

        // Choose one - Target player draws two cards; or target player discards two cards.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
        Mode mode = new Mode();
        mode.getTargets().add(new TargetPlayer());
        mode.getEffects().add(new DiscardTargetEffect(2));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.expansionSetCode = "ALA";

        this.color.setBlack(true);

        // Target player discards a card at random.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(1, true));
        this.getSpellAbility().addTarget(new TargetPlayer());
        // Cycling {5}{U}{B}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{U}{B}{R}")));
        // When you cycle Resounding Scream, target player discards two cards at random.
        Ability ability = new CycleTriggeredAbility(new DiscardTargetEffect(2, true));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

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

        // When Mournwhelk enters the battlefield, target player discards two cards.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DiscardTargetEffect(2));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        // Evoke {3}{B}
        this.addAbility(new EvokeAbility(this, "{3}{B}"));
    }
View Full Code Here

        this.expansionSetCode = "CON";

        this.color.setBlack(true);

        // {1}{B}, {tap}: Target player discards a card. Activate this ability only during your turn.
        Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{1}{B}"), MyTurnCondition.getInstance());
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        // Kicker {4}
        this.addAbility(new KickerAbility("{4}"));
        // Target player discards a card. If Hypnotic Cloud was kicked, that player discards three cards instead.

        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DiscardTargetEffect(3), new DiscardTargetEffect(1), KickedCondition.getInstance(),
                "Target player discards a card. If {this} was kicked, that player discards three cards instead"));

    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.discard.DiscardTargetEffect

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.