Package mage.players

Examples of mage.players.Player.shuffleLibrary()


            }
           
            for(Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)){
                permanent.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
            }
            player.shuffleLibrary(game);
           
            player.drawCards(7, game);
           
            player.setLife(20, game);
        }
View Full Code Here


                if (card != null) {
                    game.informPlayers(new StringBuilder(sourceCard.getName()).append(": Put ").append(card.getName()).append(" onto the battlefield").toString());
                    card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), source.getControllerId());
                }
            }
            player.shuffleLibrary(game);
            return true;
        }
        player.shuffleLibrary(game);
        return false;
    }
View Full Code Here

                }
            }
            player.shuffleLibrary(game);
            return true;
        }
        player.shuffleLibrary(game);
        return false;
    }

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

                    for (UUID cardId : (List<UUID>) target.getTargets()) {
                        Card card = controller.getLibrary().remove(cardId, game);
                        revealed.add(card);
                    }
                    controller.revealCards(sourceObject.getName(), revealed, game);
                    controller.shuffleLibrary(game);

                    TargetCard targetToLib = new TargetCard(Zone.PICK, new FilterCard(textTop));

                    while (revealed.size() > 1 && controller.isInGame()) {
                        controller.choose(Outcome.Neutral, revealed, targetToLib, game);
View Full Code Here

                    if (card != null) {
                        controller.removeFromHand(card, game);
                        card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
                    }
                }
                controller.shuffleLibrary(game);
                controller.drawCards(cardsHand, game);
            }
            return true;
        }
View Full Code Here

                                player.removeFromHand(card, game);
                                card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
                            }
                        }
                        game.informPlayers(player.getName() + " shuffles the cards from his or her hand into his or her library");
                        player.shuffleLibrary(game);
                        player.drawCards(cardsHand, game);
                    }
                }
            }
            return true;
View Full Code Here

                    if (card != null) {
                        you.cast(card.getSpellAbility(), game, true);
                    }
                }
            }
            you.shuffleLibrary(game);
            return true;
        }
        return false;
    }
}
View Full Code Here

                    if (card != null){
                        card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, false);
                    }
                }
            }
            player.shuffleLibrary(game);
            return true;
        }
        player.shuffleLibrary(game);
        return false;
    }
View Full Code Here

                }
            }
            player.shuffleLibrary(game);
            return true;
        }
        player.shuffleLibrary(game);
        return false;
    }

   
}
View Full Code Here

                for (Card card: controller.getHand().getCards(game)) {
                    if (card != null) {
                        controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.HAND, true, false);
                    }
                }
                controller.shuffleLibrary(game);
                controller.drawCards(cardsHand, game);
            }
            return true;           
        }
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.