Package mage.abilities.common

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


        this.color.setBlack(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(4);
        // Whenever you cast a Treefolk spell, you may have target creature get +3/-3 until end of turn.
        Ability ability = new SpellCastControllerTriggeredAbility(new BoostTargetEffect(3, -3, Duration.EndOfTurn), filter, true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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


        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever you cast a Spirit or Arcane spell, target player reveals his or her hand and discards all cards with that spell's converted mana cost.
        Ability ability = new SpellCastControllerTriggeredAbility(Zone.BATTLEFIELD, new InfernalKirinEffect(), new FilterSpiritOrArcaneCard(), false, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);

    }

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

        this.subtype.add("Spirit");
        this.color.setBlue(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);
        Ability ability = new SpellCastControllerTriggeredAbility(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        // Whenever you cast a Spirit or Arcane spell, target creature can't block this turn.
        Ability ability = new SpellCastControllerTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        this.toughness = new MageInt(2);

        this.addAbility(InfectAbility.getInstance());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
        SpellCastControllerTriggeredAbility ability = new SpellCastControllerTriggeredAbility(new AddPoisonCounterTargetEffect(1), filterSpell, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

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

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

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever you cast a Spirit or Arcane spell, you may gain control of target creature with that spell's converted mana cost until end of turn.
        Ability ability = new SpellCastControllerTriggeredAbility(Zone.BATTLEFIELD, new SkyfireKirinEffect(), new FilterSpiritOrArcaneCard(), true, true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

    @Override
    public void adjustTargets(Ability ability, Game game) {
View Full Code Here

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

        SpellCastControllerTriggeredAbility ability = new SpellCastControllerTriggeredAbility(new BoostTargetEffect(2, 0, Duration.EndOfTurn), filter, true);
        ability.addEffect(new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

        this.power = new MageInt(2);
        this.toughness = new MageInt(4);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filterRedCreature, true)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filterWhiteCreature, true)));
        Ability ability = new SpellCastControllerTriggeredAbility(new DamageTargetEffect(3), filterRedSpell, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        this.addAbility(new SpellCastControllerTriggeredAbility(new GainLifeEffect(3), filterWhiteSpell, false));
    }

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

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever you cast a spell, return target permanent to its owner's hand.
        Ability ability = new SpellCastControllerTriggeredAbility(new ReturnToHandTargetEffect(), false);
        ability.addTarget(new TargetPermanent());       
        this.addAbility(ability);
    }

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