Package mage.players

Examples of mage.players.Player.shuffleLibrary()


        searchLand(player, source, game, cards, "Island");
        searchLand(player, source, game, cards, "Swamp");
        searchLand(player, source, game, cards, "Mountain");

        player.revealCards("Shard Convergence", cards, game);
        player.shuffleLibrary(game);

        return true;
    }

    private void searchLand(Player player, Ability source, Game game, Cards cards, String subtype) {
View Full Code Here


            player.lookAtCards("Lim-Dul's Vault", cards, game);
            doAgain = player.chooseUse(outcome, "Pay 1 lfe and look at the next 5 cards?", game);
            if (doAgain) {
                player.loseLife(1, game);
            } else {
                player.shuffleLibrary(game);
            }
           
            TargetCard target = new TargetCard(Zone.PICK, new FilterCard(doAgain ? textBottom : textTop));
            while (player.isInGame() && cards.size() > 1) {
                player.choose(Outcome.Neutral, cards, target, game);
View Full Code Here

                        permanent.imprint(card.getId(), game);
                    }
                }
            }
        }
        player.shuffleLibrary(game);
        return true;
    }

    @Override
    public StrataScytheImprintEffect copy() {
View Full Code Here

                                    card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), player.getId(), false);
                                }
                            }
                        }
                    }
                    player.shuffleLibrary(game);
                }

            }
            return true;
        }
View Full Code Here

                        cards.add(card);
                    }
                }
            }
           
            player.shuffleLibrary(game);
              
            int numberOfGoblins = cards.size();
            if (numberOfGoblins > 0) {
                if (cards.size() > 1) {
                    TargetCard targetCard = new TargetCard(Zone.LIBRARY, putOnTopOfLibraryFilter);
View Full Code Here

        searchLand(player, source, game, cards, "Island");
        searchLand(player, source, game, cards, "Swamp");
        searchLand(player, source, game, cards, "Mountain");

        player.revealCards("Gem of Becoming", cards, game);
        player.shuffleLibrary(game);

        return false;
    }

    private void searchLand(Player player, Ability source, Game game, Cards cards, String subtype) {
View Full Code Here

        }
        Cards cards = new CardsImpl();
        searchCard(you, source, game, cards, "Zombie");
        searchCard(you, source, game, cards, "Swamp");
        you.revealCards("Corpse Harvester", cards, game);
        you.shuffleLibrary(game);
        return true;
    }

    private void searchCard(Player player, Ability source, Game game, Cards cards, String subtype) {
        FilterCard filter = new FilterCard(subtype);
View Full Code Here

            Card targetCard = game.getCard(target.getFirstTarget());
            if (targetCard == null) {
                applied = false;
            } else{
                applied = you.putOntoBattlefieldWithInfo(targetCard, game, Zone.LIBRARY, source.getSourceId());
                you.shuffleLibrary(game);
            }
        }
        return applied;
    }
View Full Code Here

                Card card = player.getLibrary().remove(targetId, game);
                if (card != null) {
                    controller.moveCardToExileWithInfo(card, CardUtil.getCardExileZoneId(game, source), sourcePermanent.getName(), source.getSourceId(), game, Zone.LIBRARY);
                }
            }
            player.shuffleLibrary(game);
        }

        ExileZone jaceExileZone = game.getExile().getExileZone(CardUtil.getCardExileZoneId(game, source));
        if (jaceExileZone == null) {
            return true;
View Full Code Here

            return false;
        }
        Permanent permanent = game.getPermanent(source.getSourceId());
        if (permanent != null) {
            permanent.moveToZone(Zone.LIBRARY, id, 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.