Examples of PayLifeCost


Examples of mage.abilities.costs.common.PayLifeCost

       // Extort
       this.addAbility(new ExtortAbility());
       // {tap}, Pay 2 life: Remove a counter from target nonland permanent.
       Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RemoveCounterTargetEffect(),new TapSourceCost());
       ability.addTarget(new TargetNonlandPermanent());
       ability.addCost(new PayLifeCost(2));
       this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

    public boolean apply(Game game, Ability source) {
        Card card = game.getCard(targetPointer.getFirst(game, source));
        Permanent permanent = (Permanent) game.getLastKnownInformation(card.getId(), Zone.BATTLEFIELD);
        Player opponent = game.getPlayer(permanent.getControllerId());
        if (opponent != null && card != null && permanent != null && source.getControllerId() != null) {
            PayLifeCost cost = new PayLifeCost(3);
            if (opponent.chooseUse(Outcome.Neutral, cost.getText() + " or " + permanent.getName() + " comes back into the battlefield under opponents control", game)) {
                cost.clearPaid();
                if (cost.pay(source, game, source.getSourceId(), opponent.getId(), true)) {
                    return true;
                }
            }
            card.putOntoBattlefield(game, Zone.GRAVEYARD, id, source.getControllerId());
            return true;
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

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

        // {tap}: Tap target creature unless its controller pays 2 life.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new VectisDominatorEffect(new PayLifeCost(2)), new ManaCostsImpl("{1}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        // Other white creatures get +1/+1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter1, true)));
        // Nonwhite creatures get -1/-1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(-1, -1, Duration.WhileOnBattlefield, filter2, false)));
        // Pay 2 life: Return Crovax, Ascendant Hero 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

        super(ownerId, 177, "Horizon Canopy", Rarity.RARE, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "FUT";

        // {tap}, Pay 1 life: Add {G} or {W} to your mana pool.
        Ability ability1 = new GreenManaAbility();
        ability1.addCost(new PayLifeCost(1));
        this.addAbility(ability1);
        Ability ability2 = new WhiteManaAbility();
        ability2.addCost(new PayLifeCost(1));
        this.addAbility(ability2);
        // {1}, {tap}, Sacrifice Horizon Canopy: Draw a card.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new GenericManaCost(1));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        this.toughness = new MageInt(4);

        // Swampwalk
        this.addAbility(new SwampwalkAbility());
        // Cycling-Pay 2 life.
        this.addAbility(new CyclingAbility(new PayLifeCost(2)));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        this.toughness = new MageInt(4);

        // Pay 1 life: Prevent the next 1 damage that would be dealt to Ethereal Champion this turn.
        Effect effect = new PreventDamageToSourceEffect(Duration.EndOfTurn, 1);
        effect.setText("Pay 1 life: Prevent the next 1 damage that would be dealt to {source} this turn");
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new PayLifeCost(1)));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        // Enchanted land has "{T}, Pay 1 life: Draw a card."
        Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new TapSourceCost());
        gainedAbility.addCost(new PayLifeCost(1));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA, Duration.WhileOnBattlefield, rule)));
    }
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);

        // Pay 1 life: Carrion Howler gets +2/-1 until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, -1, Duration.EndOfTurn), new PayLifeCost(1)));
    }
View Full Code Here

Examples of mage.abilities.costs.common.PayLifeCost

        this.expansionSetCode = "RAV";
        this.subtype.add("Mountain");
        this.subtype.add("Plains");
        this.addAbility(new RedManaAbility());
        this.addAbility(new WhiteManaAbility());
        this.addAbility(new AsEntersBattlefieldAbility(new TapSourceUnlessPaysEffect(new PayLifeCost(2)), "you may pay 2 life. If you don't, {this} enters the battlefield tapped"));
    }
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.