Package mage.abilities.common

Examples of mage.abilities.common.SpellCastControllerTriggeredAbility.addTarget()


        // Other Merfolk creatures you control get +1/+1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter1, true)));
        // Whenever you cast a Merfolk spell, you may tap or untap target permanent.
        Ability ability = new SpellCastControllerTriggeredAbility(new MayTapOrUntapTargetEffect(), filter2, true);
        Target target = new TargetPermanent();
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }

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


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

        // Whenever you cast a Spirit or Arcane spell, target land becomes a 3/3 creature until end of turn. It's still a land.
        Ability ability = new SpellCastControllerTriggeredAbility(new BecomesCreatureTargetEffect(new SoilshaperToken(), "land", Duration.EndOfTurn), filter, false);
        ability.addTarget(new TargetLandPermanent());
        this.addAbility(ability);
    }

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

        this.color.setGreen(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);
        // Whenever you cast a Spirit or Arcane spell, put a +1/+1 counter on target creature.
        Ability ability = new SpellCastControllerTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance()), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        SpellCastControllerTriggeredAbility ability = new SpellCastControllerTriggeredAbility(new EmbersmithEffect(), filter, false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new SpellCastControllerTriggeredAbility(new GainAbilityTargetEffect(FearAbility.getInstance(), Duration.EndOfTurn), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        this.subtype.add("Spirit");
        this.color.setRed(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(1);
        Ability ability = new SpellCastControllerTriggeredAbility(new DestroyTargetEffect(), filter, true);
        ability.addTarget(new TargetNonBasicLandPermanent());
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(3);
        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever you cast a Spirit or Arcane spell, you may tap or untap target creature.
        Ability ability = new SpellCastControllerTriggeredAbility(new MayTapOrUntapTargetEffect(),filter, true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        this.power = new MageInt(6);
        this.toughness = new MageInt(4);

        // Whenever you cast a Spirit or Arcane spell, target opponent exiles a card from his or her hand.
        Ability ability = new SpellCastControllerTriggeredAbility(new ExileFromZoneTargetEffect(Zone.HAND, null, "", new FilterCard()), new FilterSpiritOrArcaneCard(), false);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
       
    }

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

        this.subtype.add("Spirit");
        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SpellCastControllerTriggeredAbility(new DamageTargetEffect(1), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        // If Leyline of Lightning is in your opening hand, you may begin the game with it on the battlefield.
        this.addAbility(LeylineAbility.getInstance());
       
        // Whenever you cast a spell, you may pay {1}. If you do, Leyline of Lightning deals 1 damage to target player.
        Ability ability = new SpellCastControllerTriggeredAbility(new LeylineOfLightningEffect(), true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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