Package mage.abilities.common

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


        this.addAbility(new KickerAbility("{W}"));


        // When Kor Sanctifiers enters the battlefield, if it was kicked, destroy target artifact or enchantment.
        EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
        ability.addTarget(new TargetPermanent(filter));
        this.addAbility(new ConditionalTriggeredAbility(ability, KickedCondition.getInstance(), "When {this} enters the battlefield, if it was kicked, destroy target artifact or enchantment."));
    }

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


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

        // When Cartographer enters the battlefield, you may return target land card from your graveyard to your hand.
      Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), true);
      ability.addTarget(new TargetCardInYourGraveyard(new FilterLandCard()));
      this.addAbility(ability);
     
    }

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

        this.expansionSetCode = "ZEN";

        // When Khalni Gem enters the battlefield, return two lands you control to their owner's hand.
        Ability etbAbility = new EntersBattlefieldTriggeredAbility(new KhalniGemReturnToHandTargetEffect());
        Target target = new TargetControlledPermanent(2, 2, filter, false);
        etbAbility.addTarget(target);
        this.addAbility(etbAbility);
        // {tap}: Add two mana of any one color to your mana pool.
        SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(2), new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
        ability.addTarget(new TargetPermanent(filter));
        this.addAbility(ability);
    }

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

        this.expansionSetCode = "MRD";
        this.subtype.add("Sheep");
        this.power = new MageInt(1);
        this.toughness = new MageInt(3);
        Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
        ability.addTarget(new TargetPermanent(filter));
        this.addAbility(ability);
    }

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

        // Intimidate
        this.addAbility(IntimidateAbility.getInstance());
        // When Lifebane Zombie enters the battlefield, target opponent reveals his or her hand. You choose a green or white creature card from it and exile that card.
        Ability ability = new EntersBattlefieldTriggeredAbility(new ExileCardYouChooseTargetOpponentEffect(filter));
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);       
    }

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

    this.toughness = new MageInt(2);

    Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
    Target target = new TargetPermanent(filter);
    target.setRequired(true);
    ability.addTarget(target);
    this.addAbility(ability);
  }

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

        // 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

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

        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(1), false);
        Target target = new TargetCreatureOrPlayer();
        ability.addTarget(target);
        this.addAbility(ability);
    }

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

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

        // When Kessig Malcontents enters the battlefield, it deals damage to target player equal to the number of Humans you control.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

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