Examples of moveCardToGraveyardWithInfo()


Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                append("? (").append(amount).append(" cards go from top of library to graveyard)").toString(), game)) {
            game.informPlayers(new StringBuilder(player.getName()).append(" dreges ").append(sourceCard.getName()).toString());
            for (int i = 0; i < amount; i++) {
                Card card = player.getLibrary().removeFromTop(game);
                if (card != null) {
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                }
            }
            player.moveCardToHandWithInfo(sourceCard, source.getSourceId(), game, Zone.GRAVEYARD);
            return true;
        }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        if (targetPlayer != null) {
            do {
                colorShared = false;
                Card card1 = targetPlayer.getLibrary().removeFromTop(game);
                if (card1 != null) {
                    targetPlayer.moveCardToGraveyardWithInfo(card1, source.getSourceId(), game, Zone.LIBRARY);
                    Card card2 = targetPlayer.getLibrary().removeFromTop(game);
                    if (card2 != null) {
                        targetPlayer.moveCardToGraveyardWithInfo(card2, source.getSourceId(), game, Zone.LIBRARY)
                        if (card1.getColor().hasColor() && card2.getColor().hasColor()) {
                            colorShared = card1.getColor().shares(card2.getColor());
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                Card card1 = targetPlayer.getLibrary().removeFromTop(game);
                if (card1 != null) {
                    targetPlayer.moveCardToGraveyardWithInfo(card1, source.getSourceId(), game, Zone.LIBRARY);
                    Card card2 = targetPlayer.getLibrary().removeFromTop(game);
                    if (card2 != null) {
                        targetPlayer.moveCardToGraveyardWithInfo(card2, source.getSourceId(), game, Zone.LIBRARY)
                        if (card1.getColor().hasColor() && card2.getColor().hasColor()) {
                            colorShared = card1.getColor().shares(card2.getColor());
                        }
                    }                   
                }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            // putting cards to grave shouldn't end the game, so getting minimun available
            int cardsCount = Math.min(amount.calculate(game, source, this), player.getLibrary().size());
            for (int i = 0; i < cardsCount; i++) {
                Card card = player.getLibrary().getFromTop(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 (controller != null) {
            int cardsCount = Math.min(numberCards, 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 true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                }
            }
            if (replace) {
                Card card = game.getCard(event.getTargetId());
                if (card != null) {
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, game.getState().getZone(event.getTargetId()));
                }
                return true;
            }
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        if (player != null) {
            int cardsCount = Math.min(numberCards.calculate(game, source, this), 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);
                }
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

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

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            Card card = game.getCard(getSourceId());
            if (card != null) {
                Player  owner = game.getPlayer(card.getOwnerId());
                if (owner != null) {
                    // if cast was not successfull, the card is moved to graveyard
                    owner.moveCardToGraveyardWithInfo(card, getSourceId(), game, Zone.EXILED);                   
                }
            }             
            return false;
        }
        return true;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        }
        // and all other cards revealed this way into his or her graveyard
        for (UUID uuid : nonCreatureCards) {
            Card card = game.getCard(uuid);
            if (card != null) {
                player.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.