Examples of DrawCardTargetEffect


Examples of mage.abilities.effects.common.DrawCardTargetEffect

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

        // {3}{U}: Target player draws a card. Activate this ability only any time you could cast a sorcery.
        Ability firstAbility = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(1), new ManaCostsImpl("{3}{U}"));
        firstAbility.addTarget(new TargetPlayer());
        this.addAbility(firstAbility);
        // {3}{B}: Target player discards a card. Activate this ability only any time you could cast a sorcery.
        Ability secondAbility = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{3}{B}"));
        secondAbility.addTarget(new TargetPlayer());
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

}

class RitesOfFlourishingAbility extends TriggeredAbilityImpl {

    public RitesOfFlourishingAbility() {
        super(Zone.BATTLEFIELD, new DrawCardTargetEffect(1));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        if (targetId != null
                && game.getStack().counter(targetId, source.getSourceId(), game)) {
            countered = true;
        }
        if (controller != null) {
            Effect effect = new DrawCardTargetEffect(new StaticValue(2), false, true);
            effect.setTargetPointer(new FixedTarget(controller.getId()));
            effect.setText("Its controller may draw up to two cards");
            DelayedTriggeredAbility ability = new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(effect);
            ability.setSourceId(source.getSourceId());
            ability.setControllerId(controller.getId());
            game.addDelayedTriggeredAbility(ability);
        }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        ability.addEffect(new GainLifeTargetEffect(2));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        // {U}: Return Phelddagrif to its owner's hand. Target opponent may draw a card.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true),new ManaCostsImpl("{U}"));
        ability.addEffect(new DrawCardTargetEffect(1, true));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        // When Lord of Tresserhorn enters the battlefield, you lose 2 life, you sacrifice two creatures, and target opponent draws two cards.
        Ability ability = new EntersBattlefieldTriggeredAbility(new LoseLifeSourceControllerEffect(2), false);
        ability.addEffect(new SacrificeTargetEffect(", you sacrifice two creatures"));
        Target target = new TargetControlledCreaturePermanent(2,2, new FilterControlledCreaturePermanent(), true);
        ability.addTarget(target);
        Effect effect = new DrawCardTargetEffect(2);
        effect.setText(", and target opponent draws two cards");
        effect.setTargetPointer(new SecondTargetPointer());
        ability.addEffect(effect);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        // {B}: Regenerate Lord of Tresserhorn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.color.setBlue(true);

        // Target player draws three cards. Then that player discards two cards unless he or she discards a land card.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(3));
        this.getSpellAbility().addEffect(new CompulsiveResearchDiscardEffect());
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        subtype.add("Wizard");
        power = new MageInt(2);
        toughness = new MageInt(3);

        // {3}{U}{U},{T} : Target player draws X cards, where X is the number of cards in your hand.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(new CardsInControllerHandCount()), new ManaCostsImpl("{3}{U}{U}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.expansionSetCode = "LRW";

        this.color.setBlue(true);

        // Whenever an opponent casts a spell, that player draws seven cards.
        this.addAbility(new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(7),
                new FilterSpell(), false, SetTargetPointer.PLAYER));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.color.setWhite(true);

        // Target player gains 7 life and draws two cards.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new GainLifeTargetEffect(7));
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.color.setRed(true);
       
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), false));

        // +1: Target player draws two cards, then discards two cards.
        LoyaltyAbility ability = new LoyaltyAbility(new DrawCardTargetEffect(2), 1);
        Effect effect = new DiscardTargetEffect(2);
        effect.setText(", then discards two cards");
        ability.addEffect(effect);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
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.