Package mage.abilities

Examples of mage.abilities.Ability.addChoice()


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

        // {tap}: Add X mana of any one color to your mana pool, where X is the number of Elves on the battlefield.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new WirewoodChannelerManaEffect(), new TapSourceCost());
        ability.addChoice(new ChoiceColor());
        this.addAbility(ability);
    }

    public WirewoodChanneler(final WirewoodChanneler card) {
        super(card);
View Full Code Here


        Choice targetChoice = new ChoiceImpl();
        targetChoice.setMessage("Choose what to target");
        targetChoice.getChoices().add("Permanent");
        targetChoice.getChoices().add("Suspended Card");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2,0,Duration.EndOfTurn), new ManaCostsImpl("{1}{R}"));
        ability.addChoice(targetChoice);
        ability.addCost(new RemoveCounterFromCardCost(new TargetCardInExile(1,1,filter, null, true), CounterType.TIME));
        this.addAbility(ability);
    }

    @Override
View Full Code Here

        this.addAbility(VigilanceAbility.getInstance());
        // {1}{W}: Prevent all damage that would be dealt to another target creature this turn by sources of the color of your choice.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new AvacynGuardianAngelPreventToCreatureEffect(Duration.EndOfTurn, Integer.MAX_VALUE, false),
                new ManaCostsImpl("{1}{W}"));
        ability.addChoice(new ChoiceColor());
        ability.addTarget(new TargetCreaturePermanent(filter));       
        this.addAbility(ability);
       
        // {5}{W}{W}: Prevent all damage that would be dealt to target player this turn by sources of the color of your choice.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
View Full Code Here

       
        // {5}{W}{W}: Prevent all damage that would be dealt to target player this turn by sources of the color of your choice.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new AvacynGuardianAngelPreventToPlayerEffect(Duration.EndOfTurn, Integer.MAX_VALUE, false),
                new ManaCostsImpl("{5}{W}{W}"));
        ability.addChoice(new ChoiceColor());
        ability.addTarget(new TargetPlayer());   
        this.addAbility(ability);
    }

    public AvacynGuardianAngel(final AvacynGuardianAngel card) {
View Full Code Here

        // {T}: Choose a color. Add one mana of that color to your mana pool for each charge counter on Astral Cornucopia.
        Ability ability = new AstralCornucopiaManaAbility();
        Choice choice = new ChoiceColor();
        choice.setMessage("Choose a color to add mana of that color");
        ability.addChoice(choice);
        this.addAbility(ability);
    }

    public AstralCornucopia(final AstralCornucopia card) {
        super(card);
View Full Code Here

        // Whenever Jareth, Leonine Titan blocks, it gets +7/+7 until end of turn.
        this.addAbility(new BlocksTriggeredAbility(new BoostSourceEffect(7,7,Duration.EndOfTurn), false));
        // {W}: Jareth gains protection from the color of your choice until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new JarethsGainProtectionFromColorSourceEffect(), new ManaCostsImpl("{W}"));
        ability.addChoice(new ChoiceColor());
        this.addAbility(ability);

    }

    public JarethLeonineTitan(final JarethLeonineTitan card) {
View Full Code Here

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

        // As Primal Clay enters the battlefield, it becomes your choice of a 3/3 artifact creature, a 2/2 artifact creature with flying, or a 1/6 Wall artifact creature with defender in addition to its other types.
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new PrimalClayEffect(), "As {this} enters the battlefield, it becomes your choice of a 3/3 artifact creature, a 2/2 artifact creature with flying, or a 1/6 Wall artifact creature with defender in addition to its other types"));
        ability.addChoice(new PrimalClayChoice());
        this.addAbility(ability);
    }

    public PrimalClay(final PrimalClay card) {
        super(card);
View Full Code Here

        this.color.setGreen(true);

        // Exile a creature you control: Add X mana of any one color to your mana pool, where X is the exiled creature's converted mana cost plus one. Spend this mana only to cast creature spells.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new FoodChainManaEffect(), new ExileTargetCost(new TargetControlledCreaturePermanent(1, 1, new FilterControlledCreaturePermanent("a creature you control"), true)));
        ability.addChoice(new ChoiceColor());
        this.addAbility(ability);
    }

    public FoodChain(final FoodChain card) {
        super(card);
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // At the beginning of each combat, choose first strike, vigilance or lifelink. Creatures you control gain that ability until end of turn.
        Ability ability = new BeginningOfCombatTriggeredAbility(new AngelicSkirmisherEffect(), TargetController.ANY, false);
        ability.addChoice(abilityChoice);
        this.addAbility(ability);
    }

    public AngelicSkirmisher(final AngelicSkirmisher card) {
        super(card);
View Full Code Here

        // Whenever you cast a Spirit or Arcane spell, Kami of the Painted Road gains protection from the color of your choice until end of turn.
        Ability ability = new SpellCastControllerTriggeredAbility(new GainProtectionFromColorSourceEffect(Duration.EndOfTurn), filter, true);
        Choice colorChoice = new ChoiceColor();
        colorChoice.setMessage("Choose color (Kami of the Painted Road)");
        ability.addChoice(colorChoice);
        this.addAbility(ability);

    }

    public KamiOfThePaintedRoad(final KamiOfThePaintedRoad card) {
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.