Examples of moveCardToLibraryWithInfo()


Examples of mage.players.Player.moveCardToLibraryWithInfo()

                    }
                    target2.clearChosen();
                }
                if (scrollRackExileZone.count(filter, game) == 1) {
                    Card card = scrollRackExileZone.get(scrollRackExileZone.iterator().next(), game);
                    controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.EXILED, true, false);
                }
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

    @Override
    public void postResolve(Card card, Ability source, UUID controllerId, Game game) {
        Player controller = game.getPlayer(controllerId);
        if (controller != null) {
            controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.STACK, toTop, true);
        }
    }
}
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

        }

        while (exile.size() > 0) {
            card = exile.getRandom(game);
            exile.remove(card.getId());
            player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.EXILED, false, false);
        }

        return true;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));
            if (targetPlayer != null) {
                for (Card card: targetPlayer.getGraveyard().getCards(game)){
                    targetPlayer.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.GRAVEYARD, true, true);
                }
                targetPlayer.shuffleLibrary(game);
            }
            controller.drawCards(1, game);
            return true;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                // and the rest on the bottom of his or her library in any order.
                while (cards.size() > 0 && controller.isInGame()) {
                    if (cards.size() == 1) {
                        Card card = cards.get(cards.iterator().next(), game);
                        if (card != null) {
                            controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, false);
                            cards.remove(card);
                        }                   
                    }
                    else {
                        TargetCard target = new TargetCard(Zone.LIBRARY, new FilterCard("card to put on bottom of your library (last chosen will be on bottom)"));
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                    else {
                        TargetCard target = new TargetCard(Zone.LIBRARY, new FilterCard("card to put on bottom of your library (last chosen will be on bottom)"));
                        controller.choose(Outcome.Neutral, cards, target, game);
                        Card card = cards.get(target.getFirstTarget(), game);
                        if (card != null) {
                            controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, false);
                            cards.remove(card);
                        }
                    }
                }
                return true;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                }
                TargetCard target = new TargetCardInHand(new FilterCard("card to put on top of your library"));
                player.choose(Outcome.Benefit, cards, target, game);
                Card card = cards.get(target.getFirstTarget(), game);
                cards.remove(card);
                player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, true, false);
                player.putCardsOnBottomOfLibrary(cards, game, source, true);
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                }
                while (cards.size() > 1) {
                    target = new TargetCard(1, Zone.LIBRARY, new FilterCard("card to put on top of library (last put is first drawn)"));
                    player.choose(Outcome.Benefit, cards, target, game);
                    Card card = cards.get(target.getFirstTarget(), game);
                    player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, true, false);
                    cards.remove(card);
                }
                if (cards.size() == 1) {
                    Card card = cards.get(cards.iterator().next(), game);
                    if (card != null) {
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                    cards.remove(card);
                }
                if (cards.size() == 1) {
                    Card card = cards.get(cards.iterator().next(), game);
                    if (card != null) {
                        player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, true, false);
                    }
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

                        toLibrary.add(permanent);
                    }
                }
                // move all permanents to lib at the same time
                for(Permanent permanent: toLibrary) {
                    player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, false);
                }
                // cards to bottom
                cards.clear();
                toLibrary.clear();
                for (Permanent permanent: permanentsToBottom) {
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.