Examples of moveCardToGraveyardWithInfo()


Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            if (player.searchLibrary(target, game, opponent.getId())) {
                List<UUID> targets = target.getTargets();
                for (UUID targetId : targets) {
                    Card card = opponent.getLibrary().remove(targetId, game);
                    if (card != null) {
                        player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
            }
            opponent.shuffleLibrary(game);
            return true;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                if (controller.choose(Outcome.Detriment, cards, target, game)) {
                    for (UUID cardId : (List<UUID>)target.getTargets()) {
                        Card card = cards.get(cardId, game);
                        if (card != null) {
                            cards.remove(card);
                            controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                        }
                    }
                }
                // The rest goes back to library in any order
                if (cards.size() > 0) {
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        if (player != null) {
            int cardsCount = Math.min(event.getAmount(), player.getLibrary().size());
            for (int i = 0; i < cardsCount; i++) {
                Card card = player.getLibrary().removeFromTop(game);
                if (card != null) {
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                } else {
                    break;
                }
            }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                            if(cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)){
                                controller.putOntoBattlefieldWithInfo(card, game, Zone.LIBRARY, source.getSourceId());                               
                            }
                            else{
                                //If you don't, put it into its owner's graveyard. Then shuffle your library
                                controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            if (card != null) {
                if (card.getCardType().contains(CardType.CREATURE)) {
                    player.putOntoBattlefieldWithInfo(card, game, Zone.LIBRARY, source.getSourceId());
                } else {
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                }
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                    }
                }
                for (UUID cardId : cards) {
                    Card card = game.getCard(cardId);
                    if (card != null) {
                        player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                for (Card card: cards.getCards(game)) {
                    cards.add(card);
                    if (card.getCardType().contains(CardType.LAND)) {
                        controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    } else {
                        controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
                controller.revealCards(sourceObject.getLogName(), cards, game);
            }
            return true;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            if (controller != null) {
                int cardsCount = Math.min(4, controller.getLibrary().size());
                for (int i = 0; i < cardsCount; i++) {
                    Card card = controller.getLibrary().removeFromTop(game);
                    if (card != null) {
                        controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
            }
        }
        return countered;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                        cards.remove(card);
                    }
                }

                for (Card card : cards.getCards(game)) {
                    controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                }
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                }

                for (UUID cardId : cards) {
                    Card card = game.getCard(cardId);
                    if (card != null) {
                        controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
            }
            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.