Examples of moveCardToLibraryWithInfo()


Examples of mage.players.Player.moveCardToLibraryWithInfo()

        Card card = game.getCard(source.getSourceId());
        if (card != null) {
            Player player = game.getPlayer(card.getOwnerId());
            if (player != null) {
                Zone fromZone = game.getState().getZone(card.getId());
                player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, fromZone, true, true);
                player.shuffleLibrary(game);
                return true;
            }
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                        switch (targetZone) {
                            case HAND:
                                controller.moveCardToHandWithInfo(card, sourceId, game, Zone.STACK);
                                break;
                            case LIBRARY:
                                controller.moveCardToLibraryWithInfo(card, sourceId, game, Zone.STACK, flag, true);
                                break;
                            case EXILED:
                                controller.moveCardToExileWithInfo(card, null, "", sourceId, game, Zone.STACK);
                                break;
                            default:
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

            // move cards to the bottom of the library
            while (player.isInGame() && cards.size() > 0 && player.choose(Outcome.Detriment, cards, target1, game)) {
                Card card = cards.get(target1.getFirstTarget(), game);
                if (card != null) {
                    cards.remove(card);
                    player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, false);
                }
                target1.clearChosen();
            }
            // move cards to the top of the library
            player.putCardsOnTopOfLibrary(cards, game, source, true);
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

        if (controller != null) {
            List<UUID> creaturesBlocked;
            List<UUID> players = new ArrayList<>();
            Permanent gomazoa = game.getPermanent(source.getSourceId());
            if (gomazoa != null) {
                controller.moveCardToLibraryWithInfo(gomazoa, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
                players.add(gomazoa.getOwnerId());
            }

            BlockedByWatcher watcher = (BlockedByWatcher) game.getState().getWatchers().get("BlockedByWatcher", source.getSourceId());
            creaturesBlocked = watcher.blockedByWatcher;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                Permanent blockedByGomazoa = game.getPermanent(blockedById);
                if (blockedByGomazoa != null && blockedByGomazoa.isAttacking()) {
                    players.add(blockedByGomazoa.getOwnerId());
                    Player owner = game.getPlayer(blockedByGomazoa.getOwnerId());
                    if (owner != null) {
                        owner.moveCardToLibraryWithInfo(blockedByGomazoa, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
                    }
                }
            }
            for (UUID player : players) {
                Player owner = game.getPlayer(player);
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

            for (UUID targetId : targetPointer.getTargets(game, source)) {
                switch (game.getState().getZone(targetId)) {
                    case BATTLEFIELD:
                        Permanent permanent = game.getPermanent(targetId);
                        if (permanent != null) {
                            result |= controller.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, onTop, true);
                        }
                        break;
                    case GRAVEYARD:
                        Card card = game.getCard(targetId);
                        if (card != null && game.getState().getZone(targetId).equals(Zone.GRAVEYARD)) {
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                        }
                        break;
                    case GRAVEYARD:
                        Card card = game.getCard(targetId);
                        if (card != null && game.getState().getZone(targetId).equals(Zone.GRAVEYARD)) {
                            result |= controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.GRAVEYARD, onTop, true);
                        }
                        break;
                }
            }
        }
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

            if (player != null) {
                Zone fromZone = game.getState().getZone(sourceCard.getId());
                Cards cards = new CardsImpl();
                cards.add(sourceCard);
                player.revealCards(sourceObject.getLogName(), cards, game);
                player.moveCardToLibraryWithInfo(sourceCard, source.getSourceId(), game, fromZone, true, true);
                player.shuffleLibrary(game);
                return true;
            }
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

            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;
    }

    @Override
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                    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);
                    }
                    target2.clearChosen();
                }
                if (scrollRackExileZone.count(filter, game) == 1) {
                    Card card = scrollRackExileZone.get(scrollRackExileZone.iterator().next(), 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.