Examples of moveToExile()


Examples of mage.cards.Card.moveToExile()

        if (player.choose(Outcome.Detriment, cards, target1, game)) {
            Card card = cards.get(target1.getFirstTarget(), game);
            if (card != null) {
                cards.remove(card);
                card.setFaceDown(true);
                card.moveToExile(CardUtil.getCardExileZoneId(game, source),
                        new StringBuilder("Hideaway (").append(hideawaySource.getName()).append(")").toString(),
                        source.getSourceId(), game);
            }
            target1.clearChosen();
        }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

        Cards cards = new CardsImpl();
        int max = Math.min(player.getLibrary().size(), 7);
        for(int i = 0; i < max; i++){
            Card card = player.getLibrary().removeFromTop(game);
            if (card != null) {
                card.moveToExile(null, "", source.getSourceId(), game);
                cards.add(card);
            }
        }
        if(cards.getCards(new FilterCreatureCard(), game).size() > 0){
            TargetCard target = new TargetCard(Zone.EXILED, new FilterCreatureCard());
View Full Code Here

Examples of mage.cards.Card.moveToExile()

            if (player.chooseTarget(Outcome.Benefit, target, source, game)) {
                int count = 0;
                for (UUID uuid : target.getTargets()) {
                    Card card = player.getGraveyard().get(uuid, game);
                    if (card != null) {
                        card.moveToExile(getId(), "Sutured Ghoul", source.getSourceId(), game);
                        if (permanent != null) {
                            permanent.imprint(card.getId(), game);
                            count++;
                        }
                    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

            UUID exileId = (UUID) game.getState().getValue("SuspendExileId" + source.getControllerId().toString());
            if (exileId == null) {
                exileId = UUID.randomUUID();
                game.getState().setValue("SuspendExileId" + source.getControllerId().toString(), exileId);
            }
            if (card.moveToExile(exileId, new StringBuilder("Suspended cards of ").append(controller.getName()).toString() , source.getSourceId(), game)) {
                card.addCounters(CounterType.TIME.createInstance(4), game);
                if (!hasSuspend) {
                    // add suspend ability
                    // TODO: Find a better solution for giving suspend to a card.
                    // If the exiled card leaves exile by another way, the abilites won't be removed from the card
View Full Code Here

Examples of mage.cards.Card.moveToExile()

                    Library library = player.getLibrary();
                    Card card;
                    do {
                        card = library.removeFromTop(game);
                        if (card != null) {
                            card.moveToExile(source.getSourceId(), "Possibility Storm Exile", source.getSourceId(), game);
                        }
                    } while (library.size() > 0 && card != null && !sharesType(card, spell.getCardType()));

                    if (card != null && sharesType(card, spell.getCardType())) {
                        if(player.chooseUse(Outcome.PlayForFree, new StringBuilder("Cast ").append(card.getName()).append(" without paying cost?").toString(), game)) {
View Full Code Here

Examples of mage.cards.Card.moveToExile()

            TargetCardInYourGraveyard target = new TargetCardInYourGraveyard();
            if (targetPlayer.chooseTarget(Outcome.Exile, target, source, game)) {
                Card card = game.getCard(target.getFirstTarget());
                if (card != null) {
                    targetPlayer.getGraveyard().remove(card);
                    card.moveToExile(null, "", source.getSourceId(), game);
                    if (card.getCardType().contains(CardType.CREATURE)) {
                        controller.gainLife(2, game);
                    }
                }
                return true;
View Full Code Here

Examples of mage.cards.Card.moveToExile()

            TargetCard target = new TargetCard(Zone.HAND, filter);
            if (target.canChoose(source.getSourceId(), source.getControllerId(), game)
                    && player.choose(Outcome.Benefit, player.getHand(), target, game)) {
                Card card = player.getHand().get(target.getFirstTarget(), game);
                if (card != null) {
                    card.moveToExile(source.getSourceId(), "Elite Arcanist", source.getSourceId(), game);
                    Permanent permanent = game.getPermanent(source.getSourceId());
                    if (permanent != null) {
                        permanent.imprint(card.getId(), game);
                        permanent.addInfo("imprint", new StringBuilder("[Exiled card - ").append(card.getName()).append("]").toString());
                    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

                }
            }
            Card cardToExile = game.getCard(source.getSourceId());
            if(cardToExile != null)
            {
                cardToExile.moveToExile(null, "", source.getSourceId(), game);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

                }
            }
            Card cardToExile = game.getCard(source.getSourceId());
            if(cardToExile != null)
            {
                cardToExile.moveToExile(null, "", source.getSourceId(), game);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

                }
            }
            Card cardToExile = game.getCard(source.getSourceId());
            if(cardToExile != null)
            {
                cardToExile.moveToExile(null, "", source.getSourceId(), 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.