Examples of addTarget()


Examples of mage.abilities.TriggeredAbility.addTarget()

        // Tribute 6
        this.addAbility(new TributeAbility(6));
        // When Nessian Wilds Ravager enters the battlefield, if tribute wasn't paid, you may have Nessian Wilds Ravager fight another target creature.
        TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect(), true);
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(new ConditionalTriggeredAbility(ability, TributeNotPaidCondition.getInstance(),
                "When {this} enters the battlefield, if its tribute wasn't paid, you may have {this} fight another target creature."));
    }

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

Examples of mage.abilities.abilityword.ConstellationAbility.addTarget()

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

        // Constellation — Whenever Harvestguard Alseids or another enchantment enters the battlefield under your control, prevent all damage that would be dealt to target creature this turn.
        Ability ability = new ConstellationAbility(new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE), false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

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

        this.toughness = new MageInt(2);

        // {2}{B}, {tap}: Target player discards a card. Activate this ability only any time you could cast a sorcery.
        Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{2}{B}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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

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

        // Whenever Walker of Secret Ways deals combat damage to a player, look at that player's hand.
        this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new WalkerOfSecretWaysEffect(), true, true));

        // {1}{U}: Return target Ninja you control to its owner's hand. Activate this ability only during your turn.
        Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}"), MyTurnCondition.getInstance());
        ability.addTarget(new TargetControlledCreaturePermanent(1,1, filterCreature, false));
        this.addAbility(ability);


    }
View Full Code Here

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

        this.color.setGreen(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);
        Ability ability = new AllyEntersBattlefieldTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)), true);
        ability.addTarget(new TargetCreaturePermanent(filterTarget));
        this.addAbility(ability);
    }

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

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

        // As Canker Abomination enters the battlefield, choose an opponent. Canker Abomination enters the battlefield with a -1/-1 counter on it for each creature that player controls.
        Ability ability = new AsEntersBattlefieldAbility(new CankerAbominationEffect());
        Target target = new TargetOpponent();
        target.setNotTarget(true);
        ability.addTarget(target);
        this.addAbility(ability);

    }

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

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

        // Equipped creature has double strike.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(DoubleStrikeAbility.getInstance(), AttachmentType.EQUIPMENT)));
        // Whenever equipped creature attacks, you may have target creature block it this turn if able.
        Ability ability = new AttacksAttachedTriggeredAbility(new GrapplingHookEffect(), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
        // Equip {4}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(4)));
    }
View Full Code Here

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

        // When Rage Forger enters the battlefield, put a +1/+1 counter on each other Shaman creature you control.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter), false));
        // Whenever a creature you control with a +1/+1 counter on it attacks, you may have that creature deal 1 damage to target player.
        Ability ability = new AttacksCreatureYourControlTriggeredAbility(new RageForgerDamageEffect(), true, filterAttack, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
    }

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

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

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

        this.addAbility(FlyingAbility.getInstance());
        AttacksOrBlocksTriggeredAbility ability = new AttacksOrBlocksTriggeredAbility(new UntapTargetEffect(), false);
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }

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

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

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

        // Whenever Lorthos, the Tidemaker attacks, you may pay {8}. If you do, tap up to eight target permanents. Those permanents don't untap during their controllers' next untap steps.
        AttacksTriggeredAbility ability = new AttacksTriggeredAbility(new LorthosTheTideMakerEffect(), true);
        ability.addTarget(new TargetPermanent(0, 8, filter, false));
        this.addAbility(ability);
    }

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