Examples of addTarget()


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

        this.color.setWhite(true);

        // Whenever a player cycles a card, you may exile target creature. If you do, return that card to the battlefield under its owner's control at the beginning of the next end step.
        Ability ability = new CycleAllTriggeredAbility(new AstralSlideEffect(), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        // Cycling {1}{R}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}")));
        // When you cycle Gempalm Incinerator, you may have it deal X damage to target creature, where X is the number of Goblins on the battlefield.
        Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)),true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        // Whenever Numot, the Devastator deals combat damage to a player, you may pay {2}{R}. If you do, destroy up to two target lands.
        OneShotEffect effect = new DestroyTargetEffect();
        effect.setText("destroy up to two target lands");
        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(
                new DoIfCostPaid(effect, new ManaCostsImpl("{2}{R}")), false);
        ability.addTarget(new TargetLandPermanent(0,2, new FilterLandPermanent("lands"), false));
        this.addAbility(ability);       
    }

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

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

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

        // Whenever Boros Reckoner is dealt damage, it deals that much damage to target creature or player.
        Ability ability = new DealtDamageToSourceTriggeredAbility(Zone.BATTLEFIELD, new BorosReckonerDealDamageEffect(), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);

        // {R/W}: Boros Reckoner gains first strike until end of turn.
        this.addAbility(new SimpleActivatedAbility(
                Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(),Duration.EndOfTurn), new ManaCostsImpl("{R/W}")));
View Full Code Here

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

        // Bushido 1
        this.addAbility(new BushidoAbility(1));
        // Whenever a creature an opponent controls dies, you may cast target instant card from your graveyard. If that card would be put into a graveyard this turn, exile it instead.
        Ability ability = new DiesCreatureTriggeredAbility(new ToshiroUmezawaEffect(), true, filter);
        ability.addTarget(new TargetCardInYourGraveyard(1,1, filterInstant));
        this.addAbility(ability);

    }

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

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

        // Whenever Blood Artist or another creature dies, target player loses 1 life and you gain 1 life.
        Ability ability = new DiesThisOrAnotherCreatureTriggeredAbility(new LoseLifeTargetEffect(1), false);
        ability.addEffect(new GainLifeEffect(1));
        Target target = new TargetPlayer();
        ability.addTarget(target);
        this.addAbility(ability);
    }

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

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

                new BoostTargetEffect(-4,-4, Duration.EndOfTurn),
                new BoostTargetEffect(-1,-1, Duration.EndOfTurn),
                new LockedInCondition(new PermanentsOnTheBattlefieldCondition(filterBogbrewWitch)),
                "target creature an opponent controls gets -1/-1 until end of turn. That creature gets -4/-4 instead if you control a creature named Bogbrew Witch");
        Ability ability = new DiesTriggeredAbility(effect);
        ability.addTarget(new TargetCreaturePermanent(filterCreature));
        this.addAbility(ability);
    }

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

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

        this.color.setBlue(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new DrawCardControllerTriggeredAbility(new DamageTargetEffect(1), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new TapSourceCost()));
    }

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

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

    this.subtype.add("Shapeshifter");
    this.power = new MageInt(0);
    this.toughness = new MageInt(0);

    Ability ability = new EntersBattlefieldAbility(new CopyEffect(), "You may have Clone enter the battlefield as a copy of any creature on the battlefield");
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }

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

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

                new SubtypePredicate("Ally")));

        // Whenever Bala Ged Thief or another Ally enters the battlefield under your control, target player reveals a number of cards from his or her hand equal to the number of Allies you control. You choose one of them. That player discards that card.
        Ability ability = new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new BalaGedThiefEffect(), filter, false);
        TargetPlayer target = new TargetPlayer();
        ability.addTarget(target);
        this.addAbility(ability);
    }

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