Package mage.players

Examples of mage.players.Player.revealCards()


                return false;
            }
        }

        if (!cards.isEmpty()) {
            controller.revealCards(sourceObject.getLogName(), cards, game);
        }

        return true;
    }
View Full Code Here


                    if (controller != null) {
                        Cards cards = new CardsImpl();
                        cards.add(card);
                        controller.lookAtCards("Miracle", cards, game);
                        if (controller.chooseUse(Outcome.Benefit, "Reveal card to be able to use Miracle?", game)) {
                            controller.revealCards("Miracle", cards, game);
                            game.fireEvent(GameEvent.getEvent(GameEvent.EventType.MIRACLE_CARD_REVEALED, card.getId(), card.getId(),controller.getId()));
                            break;
                        }
                    }
                }
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getFirstTarget());
        if (player != null) {
            Cards hand = player.getHand();
            player.revealCards("Trapfinder's Trick", hand, game);
            Set<Card> cards = hand.getCards(game);
            for (Card card : cards) {
                if (card != null && card.hasSubtype("Trap")) {
                    player.discard(card, source, game);
                }
View Full Code Here

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

                        if (card != null) {
                            player.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                            revealed.add(card);
                        }
                    }
                    player.revealCards("Search", revealed, game);
                }
            }
            player.shuffleLibrary(game);
            return true;
        }
View Full Code Here

                convertedManaCosts += card.getManaCost().convertedManaCost();
                numberCardsRevealed++;
                cards.add(card);               
                paid = true;
            }
            player.revealCards("card cost", cards, game); // this is not a boolean
            return paid;
        }
        paid = false;
        return paid;
    }
View Full Code Here

        CardsImpl cards = new CardsImpl();
        int amount = Math.min(amountCards.calculate(game, source, this), player.getLibrary().size());
        for (int i = 0; i < amount; i++) {
            cards.add(player.getLibrary().removeFromTop(game));
        }
        player.revealCards(new StringBuilder("Put ").append(filter.getMessage()).append(" into hand").toString(), cards, game);

        Set<Card> cardsList = cards.getCards(game);
        for (Card card : cardsList) {
            if (filter.match(card, game)) {
                player.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
View Full Code Here

                creatureCard = card;
            } else {
                nonCreatureCards.add(card);
            }
        }
        player.revealCards(sourceObject.getName(), revealed, game);

        //If he or she does, that player puts that card onto the battlefield
        if (creatureCard != null) {
            player.putOntoBattlefieldWithInfo(creatureCard, game, Zone.LIBRARY, source.getSourceId());
        }
View Full Code Here

                            cardsToReveal.add(game.getCard(cardId));
                            spliceAbilities.remove(selectedAbility);
                        }
                    }
                } while (!spliceAbilities.isEmpty() && controller.chooseUse(Outcome.Benefit, "Splice another card?", game));
                controller.revealCards("Spliced cards", cardsToReveal, game);
            }
        }
    }

    /**
 
View Full Code Here

                if (card != null) {
                    Cards cards = new CardsImpl(card);
                    controller.lookAtCards(sourcePermanent.getLogName(), cards, game);
                    if (CardUtil.shareSubtypes(sourcePermanent, card)) {
                        if (controller.chooseUse(outcome,new StringBuilder("Kinship - Reveal ").append(card.getLogName()).append("?").toString(), game)) {
                            controller.revealCards(sourcePermanent.getLogName(), cards, game);
                            for (Effect effect: kinshipEffects) {
                                effect.setTargetPointer(new FixedTarget(card.getId()));
                                if (effect.getEffectType().equals(EffectType.ONESHOT)) {
                                    effect.apply(game, source);
                                } else {
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.