Examples of addMode()


Examples of mage.abilities.Ability.addMode()

        Ability ability = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(2));
        Mode mode = new Mode();
        mode.getEffects().add(new LoseLifeTargetEffect(2));
        mode.getTargets().add(new TargetPlayer());
        ability.addMode(mode);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.Ability.addMode()

        Ability ability = new EntersBattlefieldTriggeredAbility(new UntapTargetEffect());
        ability.addTarget(new TargetControlledPermanent());
        Mode mode = new Mode();
        mode.getEffects().add(new TapTargetEffect());
        mode.getTargets().add(new TargetPermanent(filter));
        ability.addMode(mode);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.Ability.addMode()

        Ability ability = new EntersBattlefieldTriggeredAbility(new BoostTargetEffect(2, 0, Duration.EndOfTurn), false);
        ability.addTarget(new TargetCreaturePermanent());
        Mode mode = new Mode();
        mode.getEffects().add(new BoostTargetEffect(0, -2, Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        ability.addMode(mode);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.Ability.addMode()

        // or put a charge counter on target noncreature artifact.
        Mode mode = new Mode();
        mode.getEffects().add(new AddCountersTargetEffect(CounterType.CHARGE.createInstance(), Outcome.BoostCreature));
        mode.getTargets().add(new TargetPermanent(filter2));
        ability.addMode(mode);

        this.addAbility(ability);

    }
View Full Code Here

Examples of mage.abilities.Ability.addMode()

        // or Bow of Nylea deals 2 damage to target creature with flying;
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(2));
        Target target = new TargetCreaturePermanent(filterFlying);
        mode.getTargets().add(target);
        ability.addMode(mode);
        // or you gain 3 life;
        mode = new Mode();
        mode.getEffects().add(new GainLifeEffect(3));
        ability.addMode(mode);
        // or put up to four target cards from your graveyard on the bottom of your library in any order.
View Full Code Here

Examples of mage.abilities.Ability.addMode()

        mode.getTargets().add(target);
        ability.addMode(mode);
        // or you gain 3 life;
        mode = new Mode();
        mode.getEffects().add(new GainLifeEffect(3));
        ability.addMode(mode);
        // or put up to four target cards from your graveyard on the bottom of your library in any order.
        mode = new Mode();
        mode.getEffects().add(new PutCardsFromGraveyardToLibraryEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(0,4, new FilterCard()));
        ability.addMode(mode);
View Full Code Here

Examples of mage.abilities.Ability.addMode()

        ability.addMode(mode);
        // or put up to four target cards from your graveyard on the bottom of your library in any order.
        mode = new Mode();
        mode.getEffects().add(new PutCardsFromGraveyardToLibraryEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(0,4, new FilterCard()));
        ability.addMode(mode);

        this.addAbility(ability);

    }
View Full Code Here

Examples of mage.abilities.Ability.addMode()

        // At the beginning of your upkeep, choose one - Destroy enchanted permanent; or you gain 2 life.
        ability = new BeginningOfUpkeepTriggeredAbility(new QuietDisrepairDestroyEffect(), TargetController.YOU, false);
        Mode mode = new Mode();
        mode.getEffects().add(new GainLifeEffect(2));
        ability.addMode(mode);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.Ability.addMode()

        // or Marath deals X damage to target creature or player;
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(new ManacostVariableValue()));
        mode.getTargets().add(new TargetCreatureOrPlayer());
        ability.addMode(mode);

        // or put an X/X green Elemental creature token onto the battlefield.
        mode = new Mode();
        mode.getEffects().add(new MarathWillOfTheWildCreateTokenEffect());
        ability.addMode(mode);
View Full Code Here

Examples of mage.abilities.Ability.addMode()

        ability.addMode(mode);

        // or put an X/X green Elemental creature token onto the battlefield.
        mode = new Mode();
        mode.getEffects().add(new MarathWillOfTheWildCreateTokenEffect());
        ability.addMode(mode);

        // X can't be 0.
        for (VariableCost cost: ability.getManaCosts().getVariableCosts()) {
            if (cost instanceof VariableManaCost) {
                ((VariableManaCost) cost).setMinX(1);
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.