Examples of DrawCardTargetEffect


Examples of mage.abilities.effects.common.DrawCardTargetEffect

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

        // {tap}: Target player draws two cards, then discards two cards.       
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(2), new TapSourceCost());
        ability.addEffect(new DiscardTargetEffect(2));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        super(ownerId, 100, "Stroke of Genius", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{X}{2}{U}");
        this.expansionSetCode = "USG";
        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

       
        // Suspend 4-{U}
        this.addAbility(new SuspendAbility(4, new ManaCostsImpl("U"), this));
        // Target player draws three cards.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(3));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

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


        this.addAbility(new LoyaltyAbility(new DrawCardAllEffect(1), 2));

        LoyaltyAbility ability1 = new LoyaltyAbility(new DrawCardTargetEffect(1), -1);
        ability1.addTarget(new TargetPlayer());
        this.addAbility(ability1);

        LoyaltyAbility ability2 = new LoyaltyAbility(new PutLibraryIntoGraveTargetEffect(20), -10);
        ability2.addTarget(new TargetPlayer());
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        // Enchanted creature gets +1/+1 for each card in its controller's hand.
        CardsInEnchantedControllerHandCount boost = new CardsInEnchantedControllerHandCount();
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(boost, boost, Duration.WhileOnBattlefield)));

        // At the beginning of the draw step of enchanted creature's controller, that player draws an additional card.
        this.addAbility(new BeginningOfDrawTriggeredAbility(new DrawCardTargetEffect(1), TargetController.CONTROLLER_ATTACHED_TO, false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

}

class HowlingMineAbility extends TriggeredAbilityImpl {

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

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.expansionSetCode = "EVE";

        this.color.setBlue(true);

        // Target player draws a card.
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(1));
        this.getSpellAbility().addTarget(new TargetPlayer());
        // Retrace
        this.addAbility(new RetraceAbility(new ManaCostsImpl("{2}{U}"), TimingRule.INSTANT));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

        this.expansionSetCode = "ULG";

        this.color.setBlue(true);

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

Examples of mage.abilities.effects.common.DrawCardTargetEffect

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

        // 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));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DrawCardTargetEffect

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

        // At the beginning of each player's draw step, that player draws an additional card.
        Effect effect = new DrawCardTargetEffect(1);
        effect.setText("that player draws an additional card");
        this.addAbility(new BeginningOfDrawTriggeredAbility(effect , TargetController.ANY, false));
        // Whenever an opponent draws a card, Nekusar, the Mindrazer deals 1 damage to that player.
        this.addAbility(new DrawCardOpponentTriggeredAbility(new DamageTargetEffect(1, true, "him or her"), false, true));
    }
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.