Package mage.players

Examples of mage.players.Player.revealCards()


                return false;
            }
        }

        if (!cards.isEmpty()) {
            controller.revealCards(sourceObject.getLogName(), cards, game);
            Card card = null;
            if (cards.size() == 1) {
                card = cards.getRandom(game);
            } else {
                TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put into your hand"));
View Full Code Here


                    player.moveCardToGraveyardWithInfo(cardToGrave, source.getSourceId(), game, Zone.LIBRARY);
                }
                if (card != null) {
                    cards.add(card);
                }
                player.revealCards(sourceObject.getLogName(), cards, game);
            }
            return true;
        }
        return false;
    }
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        Player opponent = game.getPlayer(source.getFirstTarget());
        Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
        if (controller != null && opponent != null && sourcePermanent != null) {
            opponent.revealCards(sourcePermanent.getName(), opponent.getHand(), game);

            TargetCard target = new TargetCard(Zone.PICK, new FilterNonlandCard("nonland card to exile"));
            if (controller.choose(Outcome.Exile, opponent.getHand(), target, game)) {
                Card card = opponent.getHand().get(target.getFirstTarget(), game);
                if (card != null) {
View Full Code Here

            if (player.getLibrary().size() > 0) {
                Card card = player.getLibrary().removeFromTop(game);
                if (card != null) {
                    Cards cards = new CardsImpl();
                    cards.add(card);
                    player.revealCards(sourcePermanent.getName(), cards, game);
                    player.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    player.loseLife(card.getManaCost().convertedManaCost(), game);

                }
                return true;
View Full Code Here

                controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                int cmc = card.getManaCost().convertedManaCost();
                if (cmc > 0) {
                    controller.loseLife(cmc, game);
                }
                controller.revealCards(new StringBuilder(sourceCard.getName()).append(" put into hand").toString(), new CardsImpl(card), game);
            }
        }
        return true;
    }
}
View Full Code Here

                    }
                }
            }
        }
        if (you != null) {
            you.revealCards("Conflux", cards, game);
            for (Card card : cards.getCards(game)) {
                card.moveToZone(Zone.HAND, source.getSourceId(), game, true);
            }
            you.shuffleLibrary(game);
        }
View Full Code Here

                    revealedCards.add(card);
                }
            }

            if (!revealedCards.isEmpty()) {
                player.revealCards("Gift of the Gargantuan", revealedCards, game);
            }
        }

        TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put on the bottom of your library"));
        while (player.isInGame() && cards.size() > 1) {
View Full Code Here

        searchLand(player, source, game, cards, "Plains");
        searchLand(player, source, game, cards, "Island");
        searchLand(player, source, game, cards, "Swamp");
        searchLand(player, source, game, cards, "Mountain");

        player.revealCards("Shard Convergence", cards, game);
        player.shuffleLibrary(game);

        return true;
    }
View Full Code Here

                    }
                }
            }

            if (!cards.isEmpty()) {
                player.revealCards("Borborygmous Enraged", cards, game);
                return true;
            }
        }
        return false;
    }
View Full Code Here

                    card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, false);
                }
            }
        }
        if (!cards.isEmpty()) {
            opponent.revealCards("Telemin Performance", cards, game);
        }
        if (creature != null) {
            return creature.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), source.getControllerId());
        }
        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.