Examples of canPayLifeCost()


Examples of mage.players.Player.canPayLifeCost()

                    Cards cardsPutBack = new CardsImpl();
                    for (UUID cardId :target.getTargets()) {
                        Card card = cards.get(cardId, game);
                        if (card != null) {
                            if (controller.canPayLifeCost()
                                    && controller.getLife() >= 4
                                    && controller.chooseUse(outcome, new StringBuilder("Pay 4 life for ").append(card.getName()).append("? (Otherwise it's put on top of your library)").toString(), game)) {
                                controller.loseLife(4, game);
                                game.informPlayers(new StringBuilder(controller.getName()).append(" pays 4 life to keep a card on hand").toString());
                            } else {
View Full Code Here

Examples of mage.players.Player.canPayLifeCost()

                PlayerList playerList = game.getPlayerList().copy();
                playerList.setCurrent(player.getId());
                Player currentPlayer = playerList.getNext(game);
                String message = new StringBuilder("Pay 2 life to put ").append(card.getName()).append(" into graveyard?").toString();
                while (!currentPlayer.getId().equals(player.getId())) {
                    if (currentPlayer.canPayLifeCost() &&
                            currentPlayer.getLife() >= 2 &&
                            currentPlayer.chooseUse(Outcome.Benefit, message, game)) {
                        currentPlayer.loseLife(2, game);
                        player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                       
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.