Package mage.abilities.costs.common

Examples of mage.abilities.costs.common.PayLifeCost.pay()


                boolean paid = false;
                if (opponent != null) {
                    Cost cost = new PayLifeCost(3);
                    if (cost.canPay(source, source.getSourceId(), opponent.getId(), game)
                            && opponent.chooseUse(outcome, new StringBuilder("Pay 3 live to prevent that ").append(creature.getLogName()).append(" returns to ").append(controller.getName()).append("'s hand?").toString(), game)) {
                        if (cost.pay(source, game, source.getSourceId(), opponent.getId(), false)) {
                            paid = true;
                        }
                    }           
                }
                if (opponent == null || !paid) {
View Full Code Here


        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

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.