Package mage.abilities.costs.mana

Examples of mage.abilities.costs.mana.ManaCost.pay()


        if (creatureToPayFor != null) {
            ManaCost manaCost = CardUtil.removeVariableManaCost(creatureToPayFor.getManaCost());
            String message = new StringBuilder("Pay ").append(manaCost.getText()).append(" (otherwise sacrifice ")
                    .append(creatureToPayFor.getName()).append(")?").toString();
            if (player.chooseUse(Outcome.Benefit, message, game)) {
                if (manaCost.pay(source, game, source.getSourceId(), player.getId(), false)) {
                    game.informPlayers(new StringBuilder(sourceObject != null ? sourceObject.getName() : "")
                            .append(": ").append(player.getName()).append(" has paid").toString());
                    return;
                }
            }
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.