Examples of PayLifeCost


Examples of mage.abilities.costs.common.PayLifeCost

    this.color.setGreen(true);
    this.subtype.add("Zombie");
    this.subtype.add("Leech");
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);
    this.addAbility(new ActivateOncePerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new PayLifeCost(2)));
  }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

public class FetchLandActivatedAbility extends ActivatedAbilityImpl<FetchLandActivatedAbility> {

  public FetchLandActivatedAbility(String[] subTypes) {
    super(Zone.BATTLEFIELD, null);
    addCost(new TapSourceCost());
    addCost(new PayLifeCost(1));
    addCost(new SacrificeSourceCost());
    FilterCard filter = new FilterCard(subTypeNames(subTypes));
    filter.getCardType().add(CardType.LAND);
    for (String subType: subTypes) {
      filter.getSubtype().add(subType);
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

    public FetchLandActivatedAbility(boolean withDamage, String[] subtypes) {
        super(Zone.BATTLEFIELD, null);
        addCost(new TapSourceCost());
        if (withDamage) {
            addCost(new PayLifeCost(1));
        }
        addCost(new SacrificeSourceCost());
        FilterCard filter = new FilterCard(subTypeNames(subtypes));
        filter.add(new CardTypePredicate(CardType.LAND));
        ArrayList<Predicate<MageObject>> subtypePredicates = new ArrayList<>();
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // At the beginning of your upkeep, tap Carnophage unless you pay 1 life.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new TapSourceUnlessPaysEffect(new PayLifeCost(1)), TargetController.YOU, false));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        this.expansionSetCode = "EXO";

        this.color.setRed(true);

        // Buyback—Pay 3 life, Discard a card at random. (You may pay 3 life and discard a card at random in addition to any other costs as you cast this spell. If you do, put this card into your hand as it resolves.)
        BuybackAbility buybackAbility = new BuybackAbility(new PayLifeCost(3));
        buybackAbility.addCost(new DiscardCardCost(true));
        this.addAbility(buybackAbility);

        // Destroy target land.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        this.expansionSetCode = "TMP";
        this.subtype.add("Spirit");
        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), new PayLifeCost(3)));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

       
        // Flying       
        this.addAbility(FlyingAbility.getInstance());
       
        // Pay 2 life: Return Selenia, Dark Angel to its owner's hand.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new PayLifeCost(2)));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

    filter.setUseColor(true);
  }

  public DemonOfDeathsGateAlternativeCost() {
    super("pay 6 life and sacrifice three black creatures");
    this.add(new PayLifeCost(6));
    this.add(new SacrificeTargetCost(new TargetControlledPermanent(3, 3, filter, false)));
  }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

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

        // Pay 2 life: Shadowcloak Vampire gains flying until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn),new PayLifeCost(2)));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

}

class RaidersSpoilsTriggeredAbility extends TriggeredAbilityImpl {
   
    RaidersSpoilsTriggeredAbility() {
        super(Zone.BATTLEFIELD, new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new PayLifeCost(1)), false);
    }
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.