Package mage.abilities.common

Examples of mage.abilities.common.SimpleActivatedAbility.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


        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

        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

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

        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

        // Remove a charge counter from Umezawa's Jitte: Choose one Equipped creature gets +2/+2 until end of turn; or target creature gets -1/-1 until end of turn; or you gain 2 life.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(2, 2, Duration.EndOfTurn), new RemoveCountersSourceCost(CounterType.CHARGE.createInstance()));
        Mode mode = new Mode();
        mode.getEffects().add(new BoostTargetEffect(-1, -1, Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        ability.addMode(mode);
        mode = new Mode();
        mode.getEffects().add(new GainLifeEffect(2));
        ability.addMode(mode);
        this.addAbility(ability);
View Full Code Here

        mode.getEffects().add(new BoostTargetEffect(-1, -1, Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        ability.addMode(mode);
        mode = new Mode();
        mode.getEffects().add(new GainLifeEffect(2));
        ability.addMode(mode);
        this.addAbility(ability);

        // Equip {2}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(2)));
    }
View Full Code Here

        // or put a 1/1 green Saproling creature token onto the battlefield.
        Mode mode = new Mode();
        Effect effect = new CreateTokenEffect(new SaprolingToken());
        effect.setText("Put a 1/1 green Saproling creature token onto the battlefield.");
        mode.getEffects().add(effect);
        ability.addMode(mode);
        this.addAbility(ability);
    }

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