Examples of moveCardToGraveyardWithInfo()


Examples of mage.players.Player.moveCardToGraveyardWithInfo()

            if (card != null) {
                if (filter.match(card, game)) {
                    player.putOntoBattlefieldWithInfo(card, game, Zone.LIBRARY, source.getSourceId());
                } else {
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                }
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            if (player.getLibrary().size() > 0) {
                Card card = player.getLibrary().removeFromBottom(game);
                if (card != null) {
                    player.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    if (card.getCardType().contains(CardType.CREATURE)) {
                        Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
                        if (sourcePermanent != null && card.getPower().getValue() <= sourcePermanent.getPower().getValue()) {
                            player.putOntoBattlefieldWithInfo(card, game, Zone.GRAVEYARD, source.getSourceId());
                        }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        ExileZone zone = game.getExile().getExileZone(CardUtil.getCardExileZoneId(game, source));
        if (controller != null && zone != null) {
            for (Card card : zone.getCards(game)) {
                controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.EXILED);
            }
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        String cardName = (String) game.getState().getValue(source.getSourceId().toString() + NameACardEffect.INFO_KEY);
        if (controller != null && targetPlayer != null && cardName != null && !cardName.isEmpty()) {           
            int amount = 1;           
            Card card = targetPlayer.getLibrary().getFromTop(game);
            if (card != null) {
                if (targetPlayer.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY)) {
                    if (card.getName().equals(cardName)) {
                        amount = 2;
                    }
                }
            }
View Full Code Here

Examples of mage.players.Player.moveCardToGraveyardWithInfo()

        if (controller.searchLibrary(target, game)) {
            if (target.getTargets().size() > 0) {
                for (UUID cardId: (List<UUID>)target.getTargets()) {
                    Card card = controller.getLibrary().remove(cardId, game);
                    if (card != null) {
                        controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
            }
            result = true;
        }
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.