Package mage.players

Examples of mage.players.Player.shuffleLibrary()


                            this.chooseAndSearchLibrary(usingPlayers, player, xValue, source, game);
                        }
                    }
                }
                for (Player player: usingPlayers) {
                    player.shuffleLibrary(game);
                }
                return true;
            }
        }
        return false;
View Full Code Here


        Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
        if (permanent != null) {
            Player player = game.getPlayer(permanent.getOwnerId());
            if (player != null) {
                player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
                player.shuffleLibrary(game);
                player.drawCards(2, game);
                return true;
            }
        }
        return false;
View Full Code Here

                Card card = game.getCard(cardId);
                if (card != null) {
                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.LIBRARY);
                }
            }
            owner.shuffleLibrary(game);
            return true;
        }
        return false;
    }
       
View Full Code Here

                    card.moveToZone(Zone.HAND, source.getSourceId(), game, false);
                }
            }
        }

        player.shuffleLibrary(game);
        return true;
    }
}
View Full Code Here

            Permanent permanent = game.getPermanent(card.getId());
            if (permanent != null) {
                permanent.setTapped(true);
            }
        }
        player.shuffleLibrary(game);
        return true;
    }
}
View Full Code Here

            Set<Card> cards = player.getGraveyard().getCards(new FilterCreatureCard(), game);
            for(Card card : cards)
            {
                card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
            }
            player.shuffleLibrary(game);
            return true;
        }
        return false;
    }
View Full Code Here

        }
        Card card = game.getCard(source.getSourceId());
        result |= card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, false);
        Player player = game.getPlayer(card.getOwnerId());
        if (player != null){
            player.shuffleLibrary(game);
        }
        if (graveyardPlayer != null && !graveyardPlayer.equals(player)) {
            graveyardPlayer.shuffleLibrary(game);
        }
        return result;
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getFirstTarget());
        if (player != null) {
            player.getLibrary().addAll(player.getGraveyard().getCards(game), game);
            player.getGraveyard().clear();
            player.shuffleLibrary(game);
            return true;
        }
        return false;
    }
}
View Full Code Here

        if (you != null) {
            you.revealCards("Conflux", cards, game);
            for (Card card : cards.getCards(game)) {
                card.moveToZone(Zone.HAND, source.getSourceId(), game, true);
            }
            you.shuffleLibrary(game);
        }
        return true;
    }
}
View Full Code Here

                    if (card != null){
                        card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, false);
                    }
                }
            }
            player.shuffleLibrary(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.