Examples of revealCards()


Examples of mage.players.Player.revealCards()

        if (defender != null) {
            Cards cards = new CardsImpl();
            Card card = defender.getLibrary().getFromTop(game);
            if (card != null) {
                cards.add(card);
                defender.revealCards("Goblin Guide", cards, game);
                if (card.getCardType().contains(CardType.LAND)) {
                    defender.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                }
            }
            return true;
View Full Code Here

Examples of mage.players.Player.revealCards()

                }
            }
            Cards foundCards = new CardsImpl();
            foundCards.addAll(cards);
            if (reveal) {
                controller.revealCards(sourceObject.getLogName(), foundCards, game);
            }
            if (forceShuffle) {
                controller.shuffleLibrary(game);
            }
            if (cards.size() > 0) {
View Full Code Here

Examples of mage.players.Player.revealCards()

                                reveal.add(card);
                            }
                        }
                    }
                    if (revealPickedCards) {
                        player.revealCards(windowName, reveal, game);
                    }

                }
            }
        }
View Full Code Here

Examples of mage.players.Player.revealCards()

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        Player opponent = game.getPlayer(source.getFirstTarget());
        if (controller != null && opponent != null) {
            if (!opponent.getHand().isEmpty()) {
                opponent.revealCards("Exile " + filter.getMessage(), opponent.getHand(), game);
                TargetCard target = new TargetCard(Zone.HAND, filter);
                if (controller.choose(Outcome.Exile, opponent.getHand(), target, game)) {
                    Card card = opponent.getHand().get(target.getFirstTarget(), game);
                    if (card != null) {
                        controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.HAND);
View Full Code Here

Examples of mage.players.Player.revealCards()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            player.revealCards("Manabond", player.getHand(), game);

            Cards hand = player.getHand().copy();
            for(UUID uuid : hand){
                Card card = game.getCard(uuid);
                if(card != null){
View Full Code Here

Examples of mage.players.Player.revealCards()

                    message.append(" vs. ").append(opponent.getName());
                    if (opponent.getLibrary().size() > 0) {
                        Cards cards = new CardsImpl();
                        cardOpponent = opponent.getLibrary().getFromTop(game);
                        cards.add(cardOpponent);
                        opponent.revealCards("for clash by " + opponent.getName(), cards, game);
                        cmcOpponent = cardOpponent.getManaCost().convertedManaCost();
                        message.append(" (").append(cmcOpponent).append(")");
                    } else {
                        message.append(" no card");
                    }
View Full Code Here

Examples of mage.players.Player.revealCards()

            Player player = game.getPlayer(sourceCard.getOwnerId());
            if (player != null) {
                Zone fromZone = game.getState().getZone(sourceCard.getId());
                Cards cards = new CardsImpl();
                cards.add(sourceCard);
                player.revealCards(sourceObject.getLogName(), cards, game);
                player.moveCardToLibraryWithInfo(sourceCard, source.getSourceId(), game, fromZone, true, true);
                player.shuffleLibrary(game);
                return true;
            }
        }
View Full Code Here

Examples of mage.players.Player.revealCards()

        Player player = game.getPlayer(controllerId);

        Card card = player.getHand().get(ability.getSourceId(), game);
        if (card != null) {
            Cards cards = new CardsImpl(card);
            player.revealCards("Ninjutsu", cards, game);
            paid = true;
            return paid;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.revealCards()

                    String name = "Reveal";
                    Card sourceCard = game.getCard(source.getSourceId());
                    if (sourceCard != null) {
                        name = sourceCard.getName();
                    }
                    player.revealCards(name, cards, game);
                }
            }
            player.shuffleLibrary(game);
            return true;
        }
View Full Code Here

Examples of mage.players.Player.revealCards()

                    cards.add(card);
                    game.setZone(card.getId(), Zone.PICK);
                }
            }
        }
        player.revealCards("Merfolk Wayfinder", cardsToReveal, game);

        TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put on the bottom of your library"));
        while (player.isInGame() && cards.size() > 1) {
            player.choose(Outcome.Neutral, cards, target, game);
            Card card = cards.get(target.getFirstTarget(), game);
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.