Package mage.abilities

Examples of mage.abilities.Ability.addMode()


        // Haunt
        // When Orzhov Pontiff enters the battlefield or the creature it haunts dies, choose one - Creatures you control get +1/+1 until end of turn; or creatures you don't control get -1/-1 until end of turn.
        Ability ability = new HauntAbility(this, new BoostAllEffect(1,1, Duration.EndOfTurn, filterControlled, false));
        Mode mode = new Mode();
        mode.getEffects().add(new BoostAllEffect(-1,-1, Duration.EndOfTurn, filterNotControlled, false));
        ability.addMode(mode);
        this.addAbility(ability);

    }

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

                new BecomesCreatureSourceEffect(new RhinoToken(), "", Duration.EndOfTurn),
                new ManaCostsImpl("{G}"));

        Mode mode = new Mode();
        mode.getEffects().add(new BecomesCreatureSourceEffect(new BirdToken(), "", Duration.EndOfTurn));
        ability.addMode(mode);

        mode = new Mode();
        mode.getEffects().add(new BecomesCreatureSourceEffect(new PlantToken(), "", Duration.EndOfTurn));
        ability.addMode(mode);
View Full Code Here

        mode.getEffects().add(new BecomesCreatureSourceEffect(new BirdToken(), "", Duration.EndOfTurn));
        ability.addMode(mode);

        mode = new Mode();
        mode.getEffects().add(new BecomesCreatureSourceEffect(new PlantToken(), "", Duration.EndOfTurn));
        ability.addMode(mode);

        this.addAbility(ability);
    }

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

        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
        ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
        Mode mode = new Mode();
        mode.getEffects().add(new EntomberExarchEffect());
        mode.getTargets().add(new TargetOpponent());
        ability.addMode(mode);
        this.addAbility(ability);
    }

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

        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new GainLifeEffect(2), TargetController.YOU, false);

        // or look at the top card of your library, then you may put that card into your graveyard;
        Mode mode = new Mode();
        mode.getEffects().add(new EtherwroughtPageEffect());
        ability.addMode(mode);

        // or each opponent loses 1 life
        Mode mode1 = new Mode();
        mode1.getEffects().add(new LoseLifeOpponentsEffect(1));
        ability.addMode(mode1);
View Full Code Here

        ability.addMode(mode);

        // or each opponent loses 1 life
        Mode mode1 = new Mode();
        mode1.getEffects().add(new LoseLifeOpponentsEffect(1));
        ability.addMode(mode1);
       
        this.addAbility(ability);

    }
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

        Ability ability = new EntersBattlefieldTriggeredAbility(new BrutalizerExarchEffect1());
        Mode mode = new Mode();
        mode.getEffects().add(new BrutalizerExarchEffect2());
        mode.getTargets().add(new TargetPermanent(filter));
        ability.addMode(mode);
        this.addAbility(ability);
    }

    public BrutalizerExarch(final BrutalizerExarch 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.