Package mage.abilities.common

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


    TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
    this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryRevealPutInHandEffect(target), true));

    SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlayTargetWithoutPayingManaEffect(), new ManaCostsImpl("{1}{W}"));
    ability.addCost(new TapSourceCost());
    ability.addTarget(new TargetCardInHand(0, 1, filter));
    this.addAbility(ability);
  }

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


        this.expansionSetCode = "CON";
        this.color.setWhite(true);
       
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{W}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }

    public ScepterOfDominance(ScepterOfDominance card) {
        super(card);
View Full Code Here

    this.color.setRed(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);

    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
    ability.addTarget(new TargetCreatureOrPlayer());
    this.addAbility(ability);
  }

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

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

    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter1, true)));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CaptivatingVampireEffect(), new TapTargetCost(new TargetControlledCreaturePermanent(5, 5, filter2, true)));
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }

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

        this.color.setGreen(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(3);

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}"));
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);
    }

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

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

    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new CreateTokenEffect(wolfToken)));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MasterOfTheWildHuntEffect(), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }

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

    Costs costs = new CostsImpl();
    costs.add(new GenericManaCost(4));
    costs.add(new TapSourceCost());
    costs.add(new ExileSourceCost());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), costs);
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }

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

        this.subtype.add("Assassin");
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);
    }

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

        this.power = new MageInt(4);
        this.toughness = new MageInt(4);
        this.addAbility(FlyingAbility.getInstance());
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{W}{B}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetControlledPermanent(filter));
        this.addAbility(ability);
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl("{2}{U}")));
    }

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

    Costs<Cost> costs = new CostsImpl();
    costs.add(new GenericManaCost(1));
    costs.add(new SacrificeSourceCost());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), costs);
    ability.addTarget(new TargetCreatureOrPlayer());
    this.addAbility(ability);
  }

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