Examples of lookAtCards()


Examples of mage.players.Player.lookAtCards()

                if (card != null) {
                    cards.add(card);
                    game.setZone(card.getId(), Zone.PICK);
                }
            }
            player.lookAtCards("Plunge into Darkness", cards, game);

            TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put into your hand"));
            if (player.choose(Outcome.DrawCard, cards, target, game)) {
                Card card = cards.get(target.getFirstTarget(), game);
                if (card != null) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                        Card card = cards.getRandom(game);
                        player.moveCardToExileWithInfo(card, null, null, source.getId(), game, Zone.LIBRARY);
                        cards.remove(card);
                    }
                }
                player.lookAtCards("OrcishLibrarian", cards, game);
                TargetCard target = new TargetCard (Zone.PICK, new FilterCard("card to put on the top of target player's library"));
                while (player.isInGame() && cards.size() > 0) {
                    player.choose(Outcome.Neutral, cards, target, game);
                    Card card = cards.get(target.getFirstTarget(), game);
                    if (card != null) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && controller.getLibrary().size() > 0) {
            Card card = controller.getLibrary().getFromTop(game);
            Cards cards = new CardsImpl(card);
            controller.lookAtCards("Galvanoth", cards, game);

            if (card.getCardType().contains(CardType.INSTANT) || card.getCardType().contains(CardType.SORCERY)) {
                StringBuilder message = new StringBuilder("Cast ").append(card.getName()).append(" without paying its mana cost?");
                if (controller.chooseUse(Outcome.PlayForFree, message.toString(), game)) {
                    controller.getLibrary().removeFromTop(game);
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                    game.setZone(card.getId(), Zone.PICK);
                }
            }

            if (cards.size() > 0) {
                player.lookAtCards("Browse", cards, game);

                TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put in your hand"));
                if (player.choose(Outcome.Benefit, cards, target, game)) {
                    Card card = cards.get(target.getFirstTarget(), game);
                    if (card != null) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

        if (controller != null && controller.getLibrary().size() > 0) {
            Card card = controller.getLibrary().getFromTop(game);
            if (card != null) {
                CardsImpl cards = new CardsImpl();
                cards.add(card);
                controller.lookAtCards("Domri Rade", cards, game);
                if (card.getCardType().contains(CardType.CREATURE)) {
                    if (controller.chooseUse(outcome, new StringBuilder("Reveal ").append(card.getName()).append(" and put it into your hand?").toString(), game)) {
                        card = controller.getLibrary().removeFromTop(game);
                        controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                        controller.revealCards("Domri Rade", cards, game);
View Full Code Here

Examples of mage.players.Player.lookAtCards()

            for (Card card: player.getLibrary().getCards(game)) {
                if (card.getName().equals(cardName)) {
                    card.moveToExile(null, "", source.getSourceId(), game);                   
                }
            }
            controller.lookAtCards("Memoricide Hand", player.getHand(), game);
            controller.lookAtCards("Memoricide Library", new CardsImpl(Zone.PICK, player.getLibrary().getCards(game)), game);
            player.shuffleLibrary(game);
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                if (card.getName().equals(cardName)) {
                    card.moveToExile(null, "", source.getSourceId(), game);                   
                }
            }
            controller.lookAtCards("Memoricide Hand", player.getHand(), game);
            controller.lookAtCards("Memoricide Library", new CardsImpl(Zone.PICK, player.getLibrary().getCards(game)), game);
            player.shuffleLibrary(game);
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.lookAtCards()

            if (card != null) {
                cards.add(card);
                game.setZone(card.getId(), Zone.PICK);
            }
        }
        player.lookAtCards("Shrine of Piercing Vision", cards, game);

        if (!cards.isEmpty()) {
            TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put into your hand"));

            if (player.choose(Outcome.DrawCard, cards, target, game)) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                            player.revealCards(sourceCard.getName(), cardToReveal, game);
                        }
                    }
                }
            } else {
                player.lookAtCards(filter.getMessage(), cardsInLibrary, game);
            }
        }

        player.shuffleLibrary(game);
        return true;
View Full Code Here

Examples of mage.players.Player.lookAtCards()

        if (you != null && you.getLibrary().size() > 0) {
            Card card = you.getLibrary().getFromTop(game);
            if (card != null) {
                CardsImpl cards = new CardsImpl();
                cards.add(card);
                you.lookAtCards("Etherwrought Page", cards, game);
                if (you.chooseUse(Outcome.Neutral, "Do you wish to put the card into your graveyard?", game)) {
                    return card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, false);
                }
                return 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.