Examples of playLand()


Examples of mage.players.Player.playLand()

            if (card.getCardType().contains(CardType.LAND)) {
                // If the revealed card is a land, you can play it only if it's your turn and you haven't yet played a land this turn.
                if (game.getActivePlayerId().equals(source.getControllerId()) && controller.canPlayLand()) {
                    if (controller.chooseUse(Outcome.Benefit, new StringBuilder("Play ").append(card.getName()).append(" from Exile?").toString(), game)) {
                        card.setFaceDown(false);
                        return controller.playLand(card, game);
                    }
                } else {
                    game.informPlayer(controller, "You're not able to play the land now due to regular restrictions.");
                }
            } else {
View Full Code Here

Examples of mage.players.Player.playLand()

        if (player != null && card != null) {           
            if (player.chooseUse(Outcome.PlayForFree, "Play " + card.getName() + " without paying its mana cost?", game)) {
                if (card.getCardType().contains(CardType.LAND)) {
                    // If the revealed card is a land, you can play it only if it's your turn and you haven't yet played a land this turn.
                    if (game.getActivePlayerId().equals(player.getId()) && player.canPlayLand()) {
                        player.playLand(card, game);
                    }
                } else {
                    player.cast(card.getSpellAbility(), game, true);
                }
            }
View Full Code Here

Examples of mage.players.Player.playLand()

            if (player.chooseUse(Outcome.PlayForFree, "Play " + card.getName() + " without paying its mana cost?", game)) {
                if (card.getCardType().contains(CardType.LAND)) {
                    // If the revealed card is a land, you can play it only if it's your turn and you haven't yet played a land this turn.
                    if (game.getActivePlayerId().equals(player.getId()) && player.canPlayLand()) {
                        used = true;
                        player.playLand(card, game);
                    }
                } else {
                    used = true;
                    player.cast(card.getSpellAbility(), game, 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.