Examples of moveCardToExileWithInfo()


Examples of mage.players.Player.moveCardToExileWithInfo()

                    } else if (game.getState().getZone(objectId).equals(Zone.HAND)) {
                        Card card = game.getCard(objectId);
                        if (card != null) {
                            Player player = game.getPlayer(card.getOwnerId());
                            if (player != null) {
                                player.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.HAND);
                            }
                        }                       
                    }
                }
               
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

            String cardName = cardChoice.getChoice();
            game.informPlayers(sourceObject.getLogName() + ", named card: [" + cardName + "]");
            for (Card card: player.getGraveyard().getCards(game)) {
                if (card.getName().equals(cardName)) {
                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.GRAVEYARD);
                }
            }
            for (Card card: player.getHand().getCards(game)) {
                if (card.getName().equals(cardName)) {
                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.HAND);
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.GRAVEYARD);
                }
            }
            for (Card card: player.getHand().getCards(game)) {
                if (card.getName().equals(cardName)) {
                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.HAND);
                }
            }
            for (Card card: player.getLibrary().getCards(game)) {
                if (card.getName().equals(cardName)) {
                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.LIBRARY);
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.HAND);
                }
            }
            for (Card card: player.getLibrary().getCards(game)) {
                if (card.getName().equals(cardName)) {
                    controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.LIBRARY);
                }
            }
            controller.lookAtCards(sourceObject.getLogName() + " Hand", player.getHand(), game);
            controller.lookAtCards(sourceObject.getLogName() + " Library", new CardsImpl(Zone.PICK, player.getLibrary().getCards(game)), game);
            player.shuffleLibrary(game);
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

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

Examples of mage.players.Player.moveCardToExileWithInfo()

        if (player != null && sourceObject != null) {
            for (int i = 0; i < 4; i++) {
                if (player.getLibrary().size() > 0) {
                    Card card = player.getLibrary().getFromTop(game);
                    if (card != null) {
                        player.moveCardToExileWithInfo(card, CardUtil.getCardExileZoneId(game, source), sourceObject.getLogName(), source.getSourceId(), game, Zone.LIBRARY);
                        if (!card.getCardType().contains(CardType.CREATURE)) {
                            ContinuousEffect effect = new NarsetEnlightenedMasterCastFromExileEffect();
                            effect.setTargetPointer(new FixedTarget(card.getId()));
                            game.addEffect(effect, source);
                        }
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            if (((ZoneChangeEvent)event).getFromZone().equals(Zone.BATTLEFIELD)) {
                Permanent permanent = ((ZoneChangeEvent)event).getTarget();
                if (permanent != null) {
                    return controller.moveCardToExileWithInfo(permanent, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
                }
            }
            else {
                Card card = game.getCard(event.getTargetId());
                if (card != null) {
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                }
            }
            else {
                Card card = game.getCard(event.getTargetId());
                if (card != null) {
                    return controller.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, ((ZoneChangeEvent)event).getFromZone());
                }
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Card targetCard = game.getCard(source.getFirstTarget());
            if (targetCard != null) {
                if (game.getState().getZone(source.getFirstTarget()).equals(Zone.GRAVEYARD)) {
                    controller.moveCardToExileWithInfo(targetCard, null, "", source.getSourceId(), game, Zone.GRAVEYARD);
                }
                Player tokenController = game.getPlayer(targetCard.getOwnerId());
                if (tokenController != null) {
                    return new PharikaSnakeToken().putOntoBattlefield(1, game, source.getSourceId(), tokenController.getId());
                }           
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Card targetCard = game.getCard(getTargetPointer().getFirst(game, source));
            if (targetCard != null) {
                if (game.getState().getZone(targetCard.getId()).equals(Zone.GRAVEYARD)) {
                    controller.moveCardToExileWithInfo(targetCard, null, "", source.getSourceId(), game, Zone.GRAVEYARD);
                }
                controller.gainLife(targetCard.getToughness().getValue(), 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.