Examples of DrawCardTargetEffect


Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.expansionSetCode = "LEA";

        this.color.setBlue(true);

        // Target player draws three cards.
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.color.setRed(true);
        this.color.setBlack(true);

        // At the beginning of each player's draw step, that player draws an additional card.
        this.addAbility(new BeginningOfDrawTriggeredAbility(new DrawCardTargetEffect(1), TargetController.ANY, false));

        // Whenever a player draws a card, Spiteful Visions deals 1 damage to that player.
        TriggeredAbility triggeredAbility = new SpitefulVisionsTriggeredAbility(new DamageTargetEffect(1), false);
        this.addAbility(triggeredAbility);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        }
        if (caster != null) {
            if (caster.chooseUse(Outcome.DrawCard, "Pay {1} to draw a card at the beginning of the next end step?", game)) {
                Cost cost = new ManaCostsImpl("{1}");
                if (cost.pay(source, game, source.getSourceId(), caster.getId(), false)) {
                    Effect effect = new DrawCardTargetEffect(1);
                    effect.setTargetPointer(new FixedTarget(caster.getId()));
                    return new CreateDelayedTriggeredAbilityEffect(new AtEndOfTurnDelayedTriggeredAbility(effect, TargetController.ANY)).apply(game, source);
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

}

class DictateOfKruphixAbility extends TriggeredAbilityImpl {

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

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.expansionSetCode = "LEA";

        this.color.setBlue(true);

        // Target player draws X cards.
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetPlayer());
       
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

}

class HornOfGreedAbility extends TriggeredAbilityImpl {

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

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.expansionSetCode = "TOR";

        this.color.setBlue(true);

        // Target player draws two cards.
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
        this.getSpellAbility().addTarget(new TargetPlayer());

        // Flashback-{1}{U}, Pay 3 life.
        CostsImpl costs = new CostsImpl();
        costs.add(new ManaCostsImpl("{1}{U}"));
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.toughness = new MageInt(0);

        // Sunburst (This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)
        this.addAbility(new SunburstAbility(this));
        // {1}, Remove four +1/+1 counters from Etched Oracle: Target player draws three cards.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), new ManaCostsImpl("{1}"));
        ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(4)));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

}

class FontOfMythosAbility extends TriggeredAbilityImpl {

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

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.color.setBlue(true);
        this.color.setBlack(true);

        // 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
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.