Examples of lookAtCards()


Examples of mage.players.Player.lookAtCards()

                if (card != null) {
                    cards.add(card);
                }
            }
            if (cards.size() > 0) {
                player.lookAtCards("Bitter Revelation", cards, game);
                TargetCard target = new TargetCard(Math.min(2, cards.size()), Zone.PICK, new FilterCard("two cards to put in your hand"));
                if (player.choose(Outcome.DrawCard, cards, target, game)) {
                    for (UUID targetId : target.getTargets()) {
                        Card card = cards.get(targetId, game);
                        if (card != null) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

            if (you.getLibrary().size() > 0) {
                Card card = you.getLibrary().getFromTop(game);
                if (card != null) {
                    CardsImpl cards = new CardsImpl();
                    cards.add(card);
                    you.lookAtCards("Think Tank", 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);
                    }

                }
View Full Code Here

Examples of mage.players.Player.lookAtCards()

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

            if (cards.size() > 0) {
                player.lookAtCards("Strategic Planning", 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 (permanentNames.contains(card.getName())) {
                    cardsFound.add(card);
                }
            }
        }
        player.lookAtCards("Mitotic Manipulation", cards, game);

        if (!cardsFound.isEmpty() && player.chooseUse(Outcome.PutCardInPlay, "Do you wish to put a card on the battlefield?", game)) {
            TargetCard target = new TargetCard(Zone.PICK, filter);

            if (player.choose(Outcome.PutCardInPlay, cardsFound, target, game)) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                if (card.getCardType().contains(CardType.LAND)) {
                    landCardFound = true;
                }
            }
        }
        player.lookAtCards("Gift of the Gargantuan", cards, game);

        if ((creatureCardFound || landCardFound) && player.chooseUse(Outcome.DrawCard, "Do you wish to reveal a creature card and/or a land card and put them into your hand?", game)) {
            Cards revealedCards = new CardsImpl();

            TargetCard target = new TargetCard(Zone.PICK, new FilterCreatureCard("creature card to reveal and put into your hand"));
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                if (card != null) {
                    cards.add(card);
                    game.setZone(card.getId(), Zone.PICK);
                }
            }
            player.lookAtCards("Lim-Dul's Vault", cards, game);
            doAgain = player.chooseUse(outcome, "Pay 1 lfe and look at the next 5 cards?", game);
            if (doAgain) {
                player.loseLife(1, game);
            } else {
                player.shuffleLibrary(game);
View Full Code Here

Examples of mage.players.Player.lookAtCards()

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

        if (!cards.isEmpty()) {
            if (cards.size() == 1) {
                Card card = cards.getRandom(game);
                cards.remove(card);
View Full Code Here

Examples of mage.players.Player.lookAtCards()

        Card card = player.getLibrary().getFromTop(game);
        if (card != null) {
            Cards cards = new CardsImpl();
            cards.add(card);
            player.lookAtCards("Into the Wilds", cards, game);
            if (filter.match(card, game)) {
                String message = "Put " + card.getName() + " onto the battlefield?";
                if (player.chooseUse(outcome, message, game)) {
                    return card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), source.getControllerId(), false);
                }
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                if (card != null) {
                    cards.add(card);
                    game.setZone(card.getId(), Zone.PICK);
                }
            }
            player.lookAtCards("Raven Familiar", 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()

                ExileZone exile = game.getExile().getExileZone(exileId);
                if (exile != null && exile.contains(objectId)) {
                    Cards cards = new CardsImpl(card);
                    Player controller = game.getPlayer(source.getControllerId());
                    if (controller != null) {
                        controller.lookAtCards("Exiled with " + sourceObject.getLogName(), cards, game);
                    }
                }
            }
        }
        return false;
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.