Examples of lookAtCards()


Examples of mage.players.Player.lookAtCards()

        card = player.getLibrary().removeFromTop(game);
        cards.add(card);
        game.setZone(card.getId(), Zone.PICK);
        TargetCard target = new TargetCard(Zone.PICK, filter);
        target.setRequired(true);
        player.lookAtCards(cards, game);
        player.choose(cards, target, game);
        card = cards.get(target.getFirstTarget(), game);
        if (card != null) {
          card.moveToZone(Zone.HAND, source.getId(), game, false);
          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(Zone.PICK);
            cards.add(card);
            player.lookAtCards("Sphinx of Jwar Isle", cards, game);
        } else {
            return false;
        }

        return true;
View Full Code Here

Examples of mage.players.Player.lookAtCards()

            if (exile != null && exile.contains(sourceId)) {
                Cards cards = new CardsImpl(card);
                Player controller = game.getPlayer(source.getControllerId());
                if (controller != null) {
                    // only the controller can see the card, so return always false
                    controller.lookAtCards("Exiled with " + sourceCard.getName(), cards, game);
                }
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                if (permanent.getAbilities().contains(SoulbondAbility.getInstance())) {
                    Player controller = game.getPlayer(permanent.getControllerId());
                    if (controller != null) {
                        Cards cards = new CardsImpl();
                        cards.add(permanent);
                        controller.lookAtCards("Soulbond", cards, game);
                        if (controller.chooseUse(Outcome.Benefit, "Use Soulbond?", game)) {
                            TargetControlledPermanent target = new TargetControlledPermanent(filter);
                            target.setNotTarget(true);
                            if (target.canChoose(permanent.getId(), controller.getId(), game)) {
                                if (controller.choose(Outcome.Benefit, target, permanent.getId(), game)) {
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                                controller = game.getPlayer(permanent.getControllerId());
                            }
                            if (controller != null) {
                                Cards cards = new CardsImpl();
                                cards.add(chosen);
                                controller.lookAtCards("Soulbond", cards, game);
                                if (controller.chooseUse(Outcome.Benefit, "Use Soulbond for recent " + permanent.getLogName() + "?", game)) {
                                    chosen.setPairedCard(permanent.getId());
                                    permanent.setPairedCard(chosen.getId());
                                    game.informPlayers(new StringBuilder(controller.getName()).append(" souldbonds ").append(permanent.getLogName()).append(" with ").append(chosen.getName()).toString());
                                    break;
View Full Code Here

Examples of mage.players.Player.lookAtCards()

        if (!controller.getLibrary().isEmptyDraw()) {
            Card card = controller.getLibrary().getFromTop(game);
            if (card == null) {
                return false;
            }
            controller.lookAtCards(sourceObject.getLogName(), new CardsImpl(card), game);
            boolean toBottom = controller.chooseUse(outcome, "Put card on the bottom of your library?", game);
            return controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, !toBottom, false);
        }
        return true;
    }
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("Explorer's Scope", cards, game);
            if (card.getCardType().contains(CardType.LAND)) {
                String message = "Put " + card.getName() + " onto the battlefield tapped?";
                if (player.chooseUse(Outcome.PutLandInPlay, message, game)) {
                    if (card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), source.getControllerId())) {
                        Permanent permanent = game.getPermanent(card.getId());
View Full Code Here

Examples of mage.players.Player.lookAtCards()

            TargetCardInExile target2 = new TargetCardInExile(filter2, source.getSourceId());
            ExileZone scrollRackExileZone = game.getExile().getExileZone(source.getSourceId());
            if (scrollRackExileZone != null) {
                while (controller.isInGame() && scrollRackExileZone.count(filter, game) > 1) {
                    controller.lookAtCards("exiled cards with " + sourceObject.getLogName(), scrollRackExileZone, game);
                    controller.choose(Outcome.Neutral, scrollRackExileZone, target2, game);
                    Card card = game.getCard(target2.getFirstTarget());
                    if (card != null) {
                        game.getExile().removeCard(card, game);
                        controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.EXILED, true, false);
View Full Code Here

Examples of mage.players.Player.lookAtCards()

                if (ability instanceof MiracleAbility) {
                    Player controller = game.getPlayer(ability.getControllerId());
                    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

Examples of mage.players.Player.lookAtCards()

            if (card != null) {
                cards.add(card);
                this.cardLooked(card, game, source);
            }
        }
        player.lookAtCards(windowName, cards, game);

        this.actionWithSelectedCards(cards, game, source, windowName);

        this.putCardsBack(source, player, cards, game);
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.