Examples of moveCardToExileWithInfo()


Examples of mage.players.Player.moveCardToExileWithInfo()

    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 && game.getState().getZone(card.getId()).equals(Zone.GRAVEYARD)) {
                controller.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, Zone.GRAVEYARD);
                return new CreateTokenEffect(
                        new RitualOfTheReturnedZombieToken(card.getPower().getValue(), card.getToughness().getValue())).apply(game, source);
            }
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                if (creature != null) {
                    ArrayList<UUID> attachments = new ArrayList<>(creature.getAttachments());
                    for (UUID attachmentId: attachments) {
                        Permanent attachment = game.getPermanent(attachmentId);
                        if (attachment != null && attachment.getSubtype().contains("Aura")) {
                            controller.moveCardToExileWithInfo(attachment, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
                        }
                    }
                    controller.moveCardToExileWithInfo(creature, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
                }
            }
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                        Permanent attachment = game.getPermanent(attachmentId);
                        if (attachment != null && attachment.getSubtype().contains("Aura")) {
                            controller.moveCardToExileWithInfo(attachment, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
                        }
                    }
                    controller.moveCardToExileWithInfo(creature, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
                }
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            for(UUID creatureId: getTargetPointer().getTargets(game, source)) {
                Permanent creature = game.getPermanent(creatureId);
                if (creature != null) {
                    controller.moveCardToExileWithInfo(creature, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
                    Token token = new HourOfNeedSphinxToken();
                    token.putOntoBattlefield(1, game, source.getSourceId(), creature.getControllerId());
                }
            }
            return true;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent targetedCreature = game.getPermanentOrLKIBattlefield(source.getFirstTarget());
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && targetedCreature != null) {
            controller.moveCardToExileWithInfo(targetedCreature, null, null, source.getSourceId(), game, Zone.BATTLEFIELD);
            EmptyToken token = new EmptyToken();
            CardUtil.copyTo(token).from(targetedCreature);
            token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
            token.addAbility(new AtEndOfTurnDelayedTriggeredAbility(new ExileSourceEffect()));
            return true;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

            Library library = opponent.getLibrary();
            Card card;
            do {
                card = library.removeFromTop(game);
                if (card != null) {
                    opponent.moveCardToExileWithInfo(card, source.getSourceId()"Stolen Goods", source.getSourceId(), game, Zone.LIBRARY);
                }
            } while (library.size() > 0 && card != null && card.getCardType().contains(CardType.LAND));

            if (card != null) {
                opponent.revealCards("Card to cast", new CardsImpl(card), game);
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        Permanent creature = game.getPermanent(this.getTargetPointer().getFirst(game, source));
        Player controller = game.getPlayer(source.getControllerId());
        Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
        if (creature != null && controller != null && sourcePermanent != null) {
            UUID exileId = CardUtil.getCardExileZoneId(game, source);
            controller.moveCardToExileWithInfo(creature, exileId,
                    new StringBuilder(sourcePermanent.getName()).append(" (").append(sourcePermanent.getZoneChangeCounter()).append(")").toString()
                    , source.getSourceId(), game, Zone.BATTLEFIELD);
           
        }
        return false;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

       Player controller = game.getPlayer(source.getControllerId());
        Card sourceCard = game.getCard(source.getSourceId());
        if (controller != null && sourceCard != null) {
            Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game, source));
            if (targetEnchantment != null) {
                controller.moveCardToExileWithInfo(targetEnchantment, null, "", source.getSourceId(), game, Zone.BATTLEFIELD);
                // 4/26/2014  
                // Deicide looks at the card in exile, not the permanent that was exiled, to determine
                // if it is a God. For each of the Gods in the Theros block, it won’t matter what your
                // devotion to its color(s) was. The card is a God card when not on the battlefield.
                Card cardInExile = game.getExile().getCard(targetEnchantment.getId(), game);
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

    public boolean replaceEvent(GameEvent event, Ability source, Game game) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            Card card = game.getCard(getTargetPointer().getFirst(game, source));
            if (card != null) {
                controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, null);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

            if (player.searchLibrary(target, game, targetPlayer.getId())) {
                List<UUID> targetId = target.getTargets();
                for (UUID targetCard : targetId) {
                    Card card = targetPlayer.getLibrary().remove(targetCard, game);
                    if (card != null) {
                        player.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, Zone.LIBRARY);
                    }
                }
            }
            targetPlayer.shuffleLibrary(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.