Package mage.players

Examples of mage.players.Player.lookAtCards()


        if (player != null && sourcePermanent != null) {           
            if (player.getLibrary().size() > 0) {
                Card card = player.getLibrary().getFromTop(game);
                Cards cards = new CardsImpl();
                cards.add(card);
                player.lookAtCards(sourcePermanent.getName(), cards, game);
                if (player.chooseUse(Outcome.DrawCard, "Do you wish to reveal the card at the top of the library?", game)) {
                    player.revealCards(sourcePermanent.getName(), cards, game);
                    if (filter.match(card, game)) {
                        return new TransformSourceEffect(true, true).apply(game, source);
                    }
View Full Code Here


        Card card = controller.getLibrary().getFromTop(game);
        if (card != null) {
            Cards cards = new CardsImpl();
            cards.add(card);
            controller.lookAtCards("top card of library - " + controller.getName(), cards, game);
            game.informPlayers(controller.getName() + " looks at the top card of his or her library");
        } else {
            return false;
        }
View Full Code Here

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

            if (cards.size() > 0) {
                player.lookAtCards("Ancestral Memories", 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.Benefit, cards, target, game)) {
                    for (UUID targetId : (List<UUID>)target.getTargets()) {
                        Card card = cards.get(targetId, game);
View Full Code Here

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

    @Override
    public boolean apply(Game game, Ability source) {
        Player targetPlayer = game.getPlayer(source.getFirstTarget());
        Player you = game.getPlayer(source.getControllerId());
        if (targetPlayer != null && you != null) {
            you.lookAtCards("Discard", targetPlayer.getHand(), game);
            TargetCard target = new TargetCard(Zone.PICK, new FilterCard());
            target.setNotTarget(true);
            if (you.choose(Outcome.Benefit, targetPlayer.getHand(), target, game)) {
                Card card = targetPlayer.getHand().get(target.getFirstTarget(), game);
                if (card != null) {
View Full Code Here

        int n = Math.min(3, library.size());
        for (int i = 0; i < n; i++) {
            cards.add(library.removeFromTop(game));
        }

        player.lookAtCards("Telling Time", cards, game);

        Card card = pickCard(game, player, cards, "card to put in your hand");
        if (card != null) {
            card.moveToZone(Zone.HAND, source.getSourceId(), game, false);
        }
View Full Code Here

            Card sourceCard = game.getCard(source.getSourceId());
            Player controller = game.getPlayer(source.getControllerId());
            if (controller != null && card != null && game.getState().getZone(cardId) == Zone.EXILED) {
                if (controller.chooseUse(outcome, "Reveal exiled card?", game)) {
                    Cards cards = new CardsImpl(card);
                    controller.lookAtCards("Exiled with " + sourceCard.getName(), cards, game);
                }
            }
        }
        return false;
    }
View Full Code Here

            Card card = player.getLibrary().removeFromTop(game);
            if (card != null) {
                cards.add(card);
            }
        }
        player.lookAtCards(sourcePermanent.getName(), cards, game);

        if (!cards.isEmpty()) {
            TargetCard target = new TargetCard(Zone.LIBRARY, new FilterCreatureCard("creature card to put into your hand"));
            if (target.canChoose(source.getSourceId(), player.getId(), game) && player.choose(Outcome.DrawCard, cards, target, game)) {
                Card card = cards.get(target.getFirstTarget(), game);
View Full Code Here

        Player controller = game.getPlayer(source.getControllerId());
        Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
        if (sourcePermanent != null && controller != null && controller.getLibrary().size() > 0) {
            Card card = controller.getLibrary().getFromTop(game);
            Cards cards = new CardsImpl(card);
            controller.lookAtCards(sourcePermanent.getName(), cards, game);
            if (card.getCardType().contains(CardType.CREATURE)) {
                if (controller.chooseUse(Outcome.DrawCard, "Do you wish to reveal the creature card at the top of the library?", game)) {
                    controller.revealCards(sourcePermanent.getName(), cards, game);
                    Permanent questForUlasTemple = game.getPermanent(source.getSourceId());
                    if (questForUlasTemple != null) {
View Full Code Here

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

            if (cards.size() > 0) {
                controller.lookAtCards("Sultai Soothsayer", cards, game);

                TargetCard target = new TargetCard(Zone.PICK, new FilterCard("card to put in your hand"));
                if (controller.choose(Outcome.Benefit, cards, target, game)) {
                    Card card = cards.get(target.getFirstTarget(), game);
                    if (card != null) {
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.