Examples of moveCardToGraveyardWithInfo()


Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            boolean landFound = false;
            while (player.getLibrary().size() > 0 && !landFound) {
                Card card = player.getLibrary().removeFromTop(game);
                if (card != null) {
                    cards.add(card);
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    if (card.getCardType().contains(CardType.LAND)) {
                        landFound = true;
                    }
                }
            }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

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

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

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

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                }
            } while (library.size() > 0 && card != null && !filter.match(card, game));

            if (!cards.isEmpty()) {
                for (Card cardToGrave: cards.getCards(game)) {
                    player.moveCardToGraveyardWithInfo(cardToGrave, source.getSourceId(), game, Zone.LIBRARY);
                }
                if (card != null) {
                    cards.add(card);
                }
                player.revealCards(sourceObject.getLogName(), cards, game);
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                cards.remove(card);
                controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
            }

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

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            if (controller != null) {
                int cardsCount = Math.min(2, 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()

            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()

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Card card = game.getCard(getTargetPointer().getFirst(game, source));
            if (card != null) {
                controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.EXILED);
            }
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            }
            // move cards not cast to graveyard
            ExileZone exile = game.getExile().getExileZone(source.getSourceId());
            if (exile != null) {
                for (Card card : exile.getCards(game)) {
                    controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.EXILED);
                }
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

                }
            }
            while (cards.size() > 0) {
                Card card = cards.get(cards.iterator().next(), game);
                cards.remove(card);
                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.