Package mage.abilities.costs.common

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


        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());
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.