Examples of addTarget()


Examples of mage.abilities.keyword.BattalionAbility.addTarget()

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

        // Battalion — Whenever Firefist Striker and at least two other creatures attack, target creature can't block this turn.
        Ability ability = new BattalionAbility(new CantBlockTargetEffect(Duration.EndOfTurn));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.ChannelAbility.addTarget()

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{2}{G}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
        // Channel - {3}{G}, Discard Ghost-Lit Nourisher: Target creature gets +4/+4 until end of turn.
        Ability ability2 = new ChannelAbility("{3}{G}", new BoostTargetEffect(4, 4, Duration.EndOfTurn));
        ability2.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability2);
    }

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

Examples of mage.abilities.keyword.EnchantAbility.addTarget()

        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
        // Enchanted creature has "{tap}: This creature deals damage equal to its power to target creature.
        // That creature deals damage equal to its power to this creature."
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PredatoryUrgeEffect(), new TapSourceCost());
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.AURA)));
    }

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

Examples of mage.abilities.keyword.ForecastAbility.addTarget()

        // Return up to three target creature cards with converted mana cost 1 or less from your graveyard to the battlefield.
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(0,3,filter3));
        this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
        // Forecast - {5}{W}, Reveal Proclamation of Rebirth from your hand: Return target creature card with converted mana cost 1 or less from your graveyard to the battlefield.
        ForecastAbility ability = new ForecastAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), new ManaCostsImpl("{5}{W}"));
        ability.addTarget(new TargetCardInYourGraveyard(filter1));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.HauntAbility.addTarget()

        // Haunt (When this creature dies, exile it haunting target creature.)
        // When Absolver Thrull enters the battlefield or the creature it haunts dies, destroy target enchantment.
        Ability ability = new HauntAbility(this, new DestroyTargetEffect());
        Target target = new TargetPermanent(new FilterEnchantmentPermanent());
        ability.addTarget(target);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.HeroicAbility.addTarget()

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

        // <i>Heroic</i> - Whenever you cast a spell that targets Elite Skirmisher, you may tap target creature.
        Ability ability = new HeroicAbility(new TapTargetEffect(), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.InspiredAbility.addTarget()

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

        // <i>Inspired</i> - Whenever Felhide Spiritbinder becomes untapped, you may pay {1}{R}. If you do, put a token onto the battlefield that's a copy of another target creature except it's an enchantment in addition to its other types. It gains haste. Exile it at the beginning of the next end step.
        Ability ability = new InspiredAbility(new DoIfCostPaid(new FelhideSpiritbinderEffect(), new ManaCostsImpl("{1}{R}"),"Use effect of {source}?"));
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.keyword.KickerAbility.addTarget()

    this.expansionSetCode = "ZEN";
    this.color.setRed(true);
    this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    this.getSpellAbility().addEffect(new DamageTargetEffect(2));
    KickerAbility ability = new KickerAbility(new DamageTargetEffect(4), true);
    ability.addTarget(this.getSpellAbility().getTargets().get(0));
    ability.addManaCost(new GenericManaCost(4));
    this.addAbility(ability);
  }

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

Examples of mage.target.Target.addTarget()

      newTarget.clearChosen();
      for (UUID targetId: target.getTargets()) {
        MageObject object = game.getObject(targetId);
        if (player.chooseUse(ability.getEffects().get(0).getOutcome(), "Change target from " + object.getName() + "?", game)) {
          if (!player.chooseTarget(ability.getEffects().get(0).getOutcome(), newTarget, ability, game))
            newTarget.addTarget(targetId, ability, game);
        }
        else {
          newTarget.addTarget(targetId, ability, game);
        }
      }
View Full Code Here

Examples of mage.target.common.TargetCreatureOrPlayer.addTarget()

            Iterator<UUID> it = possibleTargets.iterator();
            while (it.hasNext()) {
                UUID targetId = it.next();
                TargetCreatureOrPlayer target = this.copy();
                target.clearChosen();
                target.addTarget(targetId, source, game, true);

                if (target.getTargets().size() == numberTargets) {
                    chosen = true;
                }
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.