Package mage.players

Examples of mage.players.Player.revealCards()


                    if (card != null) {

                        card.moveToZone(Zone.HAND, source.getSourceId(), game, false);
                        Cards revealCard = new CardsImpl();
                        revealCard.add(card);
                        player.revealCards("Golden Wish", revealCard, game);
                        break;
                    }
                }
            }
            Card cardToExile = game.getCard(source.getSourceId());
View Full Code Here


            else{
                break;
            }
        }
       
        controller.revealCards(sourceObject.getLogName(), cards, game);
        controller.loseLife(cards.size(), game);
       
        return true;
    }
}
View Full Code Here

        if (player.getLibrary().size() > 0) {
            Card card = player.getLibrary().getFromTop(game);
            Cards cards = new CardsImpl();
            cards.add(card);
            player.revealCards("Call of the Wild", cards, game);

            if (card != null) {
                if (card.getCardType().contains(CardType.CREATURE)) {
                    player.putOntoBattlefieldWithInfo(card, game, Zone.LIBRARY, source.getSourceId());
                } else {
View Full Code Here

            if (spell != null) {
                Card topcard = controller.getLibrary().getFromTop(game);
                if (topcard != null) {
                    CardsImpl cards = new CardsImpl();
                    cards.add(topcard);
                    controller.revealCards(sourcePermanent.getName(), cards, game);
                    if (CardUtil.convertedManaCostsIsEqual(topcard, spell)) {
                        return game.getStack().counter(spell.getId(), source.getSourceId(), game);
                    }
                }
                return true;
View Full Code Here

                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);
                    }
                }
            }
            return true;
        }
View Full Code Here

                    cards.add(card);
                }
            } while (library.size() > 0 && card != null && card.getCardType().contains(CardType.LAND));
            // reveal cards
            if (!cards.isEmpty()) {
                player.revealCards("Explosive Revelation", cards, game);
            }
            // the nonland card
            int damage = card.getManaCost().convertedManaCost();
            // assign damage to target
            for (UUID targetId: targetPointer.getTargets(game, source)) {
View Full Code Here

                    Card card = player.getLibrary().remove(cardId, game);
                    if (card != null) {
                        cards.add(card);
                    }
                }
                player.revealCards("Realms Uncharted", cards, game);

                CardsImpl cardsToKeep = new CardsImpl();
                if (cards.size() > 2) {
                    cardsToKeep.addAll(cards);
View Full Code Here

                    }
                }
            }

            if (!cards.isEmpty()) {
                player.revealCards(sourceObject.getLogName(), cards, game);
                if (creatureCardsFound > 0 && player.chooseUse(outcome, "Put creature(s) into play?", game)) {
                    int cardsToChoose = Math.min(numberOfCardsToPutIntoPlay, creatureCardsFound);
                    TargetCard target = new TargetCard(cardsToChoose, cardsToChoose, Zone.LIBRARY, filter);
                    if (player.choose(Outcome.PutCreatureInPlay, cards, target, game)) {
                        for(UUID creatureId: target.getTargets()) {
View Full Code Here

                        controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    } else {
                        controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
                controller.revealCards(sourceObject.getLogName(), cards, game);
            }
            return true;
        }
        return false;
    }
View Full Code Here

        Player controller = game.getPlayer(source.getControllerId());
        Card sourceCard = game.getCard(source.getSourceId());
        if (controller != null && sourceCard != null) {
            Card card = controller.getLibrary().getFromTop(game);
            if (card != null) {
                controller.revealCards(sourceCard.getName(), new CardsImpl(card), game);
                controller.drawCards(card.getManaCost().convertedManaCost(), game);
            }
            return true;
        }
        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.