Examples of moveCardToLibraryWithInfo()


Examples of mage.players.Player.moveCardToLibraryWithInfo()

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

Examples of mage.players.Player.moveCardToLibraryWithInfo()

    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));       
        if (permanent != null) {
            Player owner = game.getPlayer(permanent.getOwnerId());           
            if (owner != null) {
                owner.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
                owner.shuffleLibrary(game);
                return true;
            }
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToLibraryWithInfo()

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), controller.getId(), source.getSourceId(), game)) {
                controller.moveCardToLibraryWithInfo(creature, source.getSourceId(), game, Zone.BATTLEFIELD, false, true);
            }
            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.