Examples of addTarget()


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

        // {6}{U}{U}: Monstrosity 4.
        this.addAbility(new MonstrosityAbility("{6}{U}{U}", 4));
        // When Shipbreaker Kraken becomes monstrous, tap up to four target creatures. Those creatures don't untap during their controllers' untap steps for as long as you control Shipbreaker Kraken.
        Ability ability = new BecomesMonstrousSourceTriggeredAbility(new TapTargetEffect());
        ability.addTarget(new TargetCreaturePermanent(0,4));
        ability.addEffect(new ShipbreakerKrakenReplacementEffect());
        this.addAbility(ability);
        this.addWatcher(new ShipbreakerKrakenWatcher());
    }
View Full Code Here

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

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

        // Whenever Goblin Medics becomes tapped, it deals 1 damage to target creature or player.
        Ability ability = new BecomesTappedTriggeredAbility(new DamageTargetEffect(1));
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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

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

        // At the beginning of combat on your turn, if you control each creature on the battlefield with the greatest power, gain control
        // of target creature an opponent controls until end of turn. Untap that creature. It gains haste until end of turn.
        TriggeredAbility gainControlAbility = new BeginningOfCombatTriggeredAbility(new GainControlTargetEffect(Duration.EndOfTurn), TargetController.YOU, false);
        gainControlAbility.addEffect(new UntapTargetEffect());
        gainControlAbility.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
        gainControlAbility.addTarget(new TargetCreaturePermanent(filter));
        Ability conditionalAbility = new ConditionalTriggeredAbility(gainControlAbility, ControlsEachCreatureWithGreatestPowerCondition.getInstance(), ruleText);
        this.addAbility(conditionalAbility);
    }

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

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

        // At the beginning of your upkeep, sacrifice Razormane Masticore unless you discard a card.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceUnlessPaysEffect(new DiscardTargetCost(new TargetCardInHand())), TargetController.YOU, false));

        // At the beginning of your draw step, you may have Razormane Masticore deal 3 damage to target creature.
        Ability ability = new BeginningOfDrawTriggeredAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), TargetController.YOU, true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        this.toughness = new MageInt(3);

        // At the beginning of your end step, put a +1/+1 counter on target Beast creature you control.
        Ability ability = new BeginningOfEndStepTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance()), TargetController.YOU, false);
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }

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

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

        // At the beginning of each player's upkeep, that player chooses target player who controls more lands than he or she does and is his or her opponent. The first player may search his or her library for a basic land card, put that card onto the battlefield, then shuffle his or her library.
        Effect effect = new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterBasicLandCard()), false, Outcome.PutLandInPlay);
        effect.setText("that player chooses target player who controls more lands than he or she does and is his or her opponent. The first player may search his or her library for a basic land card, put that card onto the battlefield, then shuffle his or her library");
        Ability ability = new BeginningOfUpkeepTriggeredAbility(effect, TargetController.ANY, true);
        ability.addTarget(new TargetPlayer(1, 1, false, filter));
        this.addAbility(ability);
    }

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

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

        this.expansionSetCode = "AVR";

        // At the beginning of your end step, you may exile target creature you control, then return that card to the battlefield under your control.
        Ability ability = new BeginningOfYourEndStepTriggeredAbility(new ExileTargetForSourceEffect("Conjurer's Closet Exile"), true);
        ability.addEffect(new ReturnToBattlefieldUnderYourControlTargetEffect());
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
    }

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

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

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

        // Whenever Goblin Cadets blocks or becomes blocked, target opponent gains control of it.
        Ability ability = new BlocksOrBecomesBlockedTriggeredAbility(new GoblinCadetsChangeControlEffect(), false);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);

    }

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

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

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
       
        // Whenever Elite Javelineer blocks, it deals 1 damage to target attacking creature.
        Ability ability = new BlocksTriggeredAbility(new DamageTargetEffect(1), false);
        ability.addTarget(new TargetCreaturePermanent(new FilterAttackingCreature()));
        this.addAbility(ability);
    }

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

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

        this.color.setRed(true);

        // Whenever a Human enters the battlefield under your control, Vigilante Justice deals 1 damage to target creature or player.
        Ability ability = new CreatureEntersBattlefieldTriggeredAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), filter, false, false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }

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