Examples of addTarget()


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

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

        // Whenever a player casts a blue spell, you may pay {1}. If you do, target player puts the top two cards of his or her library into his or her graveyard.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new PutLibraryIntoGraveTargetEffect(2), new ManaCostsImpl("{1}")), filter, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
    }

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

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

        this.color.setBlue(true);

        // Whenever you cast a creature spell, you may pay {1}. If you do, return target creature to its owner's hand.
        Ability ability = new SpellCastControllerTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new GenericManaCost(1)), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

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

        // Whenever an opponent casts a spell, Kaervek the Merciless deals damage to target creature or player equal to that spell's converted mana cost.
        Ability ability = new SpellCastOpponentTriggeredAbility(Zone.BATTLEFIELD, new KaervekTheMercilessEffect(), new FilterSpell(), false, SetTargetPointer.SPELL);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);

    }

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

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

        // Morph {1}{G}
        this.addAbility(new MorphAbility(this,new ManaCostsImpl("{1}{G}")));
        // When Nantuko Vigilante is turned face up, destroy target artifact or enchantment.
        Ability ability = new TurnedFaceUpSourceTriggeredAbility(new DestroyTargetEffect());
        ability.addTarget(new TargetPermanent(filter));
        this.addAbility(ability);
    }

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

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

        Effect effect = new LoseLifeTargetEffect(1);
        effect.setText("you may have target opponent lose 1 life");
        Ability ability = new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.GRAVEYARD,
                effect, new FilterArtifactPermanent(),
                "Whenever an artifact is put into a graveyard from the battlefield, ", true);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }

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

Examples of mage.abilities.decorator.ConditionalActivatedAbility.addTarget()

                new BoostTargetEffect(3, 3, Duration.EndOfTurn),
                new SacrificeSourceCost(),
                new IsStepCondition(PhaseStep.UPKEEP),
                null
        );       
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility.addTarget()

            new ManaCostsImpl("{G}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {G}, {T}, Sacrifice {this}: Target creature gets +3/+3 until end of turn. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        thresholdAbility.addTarget(new TargetCreaturePermanent());
        this.addAbility(thresholdAbility);
    }

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

Examples of mage.abilities.decorator.ConditionalTriggeredAbility.addTarget()

        // When Gatekeeper of Malakir enters the battlefield, if it was kicked, target player sacrifices a creature.
        EntersBattlefieldTriggeredAbility ability =
                new EntersBattlefieldTriggeredAbility(new SacrificeEffect(filter, 1, "target player"));
        Ability conditionalAbility = new ConditionalTriggeredAbility(ability, KickedCondition.getInstance(), "When {this} enters the battlefield, if it was kicked, target player sacrifices a creature.");
        conditionalAbility.addTarget(new TargetPlayer());
        this.addAbility(conditionalAbility);
    }

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

Examples of mage.abilities.effects.common.CastSourceTriggeredAbility.addTarget()

        this.subtype.add("Eldrazi");
        this.power = new MageInt(10);
        this.toughness = new MageInt(9);
        // When you cast Artisan of Kozilek, you may return target creature card from your graveyard to the battlefield.
        Ability ability = new CastSourceTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), true);
        ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
        this.addAbility(ability);
        // Annihilator 2
        this.addAbility(new AnnihilatorAbility(2));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DealsDamageToOpponentTriggeredAbility.addTarget()

        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // Whenever Charnelhoard Wurm deals damage to an opponent, you may return target card from your graveyard to your hand.
        Ability ability = new DealsDamageToOpponentTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), true);
        ability.addTarget(new TargetCardInYourGraveyard());
        this.addAbility(ability);
    }

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