Package mage.cards

Examples of mage.cards.Card.moveToExile()


                }
            }
            if (cards.size() > 0) {
                List<UUID> cardsId = new ArrayList<>();
                for (Card card : cards) {
                    card.moveToExile(source.getSourceId(), "Act on Impulse", source.getSourceId(), game);
                    cardsId.add(card.getId());                  
                }
                game.addEffect(new ActOnImpulseMayPlayExiledEffect(cardsId), source);
            }
            return true;
View Full Code Here


        }

        for (int i = 0; i < 6; i++) {
            if (player != null && player.getLibrary().size() > 0) {
                Card topCard = player.getLibrary().getFromTop(game);
                topCard.moveToExile(source.getSourceId(), "Cards exiled by Hellcarver Demon", source.getSourceId(), game);
            }
        }

        while (player != null && player.isInGame() && player.chooseUse(Outcome.PlayForFree, "Cast another nonland card exiled with Hellcarver Demon without paying that card's mana cost?", game)) {
            TargetCardInExile target = new TargetCardInExile(filter, source.getSourceId());
View Full Code Here

        TargetCardInHand target = new TargetCardInHand(filter);
        if (player.choose(this.outcome, target, source.getSourceId(), game)) {
            Card card = game.getCard(target.getFirstTarget());
            if (card != null) {
                card.moveToExile(CardUtil.getCardExileZoneId(game, source), "Panoptic Mirror", source.getSourceId(), game);
                Permanent PanopticMirror = game.getPermanent(source.getSourceId());
                if(PanopticMirror != null){
                    PanopticMirror.imprint(card.getId(), game);
                }
                return true;
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(targetPointer.getFirst(game, source));
        if (player != null) {
            Card card = player.getLibrary().removeFromTop(game);
            if (card != null) {
                card.moveToExile(source.getSourceId(), "Omen Machine Exile", source.getSourceId(), game);
                if (card.getCardType().contains(CardType.LAND)) {
                    card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), player.getId());
                }
                else {
                    player.cast(card.getSpellAbility(), game, true);
View Full Code Here

            TargetCardInLibrary target = new TargetCardInLibrary(0, Integer.MAX_VALUE, new FilterNonlandCard());
            if (player.searchLibrary(target, game)) {
                for (UUID targetId : target.getTargets()) {
                    Card card = player.getLibrary().remove(targetId, game);
                    if (card != null) {
                        card.moveToExile(null, "", source.getSourceId(), game);
                    }
                }
            }

            player.shuffleLibrary(game);
View Full Code Here

            Player you = game.getPlayer(source.getControllerId());
            UUID exileId = CardUtil.getCardExileZoneId(game, source);
            Card card = opponent.getLibrary().getFromTop(game);
            if (card != null
                    && you != null) {
                card.moveToExile(exileId, "Knacksaw Clique", source.getSourceId(), game);
                if (card.getSpellAbility() != null) {
                    game.addEffect(new KnacksawCliqueCastFromExileEffect(card.getId(), exileId), source);
                }
            }
            return true;
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Player you = game.getPlayer(source.getControllerId());
        Player targetPlayer = game.getPlayer(source.getFirstTarget());
        if (targetPlayer != null && targetPlayer.getLibrary().size() > 0) {
            Card card = targetPlayer.getLibrary().getFromTop(game);
            card.moveToExile(id, "Scrib Nibblers Exile", source.getSourceId(), game);
            if (card != null && card.getCardType().contains(CardType.LAND)) {
                you.gainLife(1, game);
                return true;
            }
        }
View Full Code Here

        Player player = game.getPlayer(source.getControllerId());
        if (player.searchLibrary(target, game)) {
            for (UUID targetId : getTargets()) {
                Card card = player.getLibrary().getCard(targetId, game);
                if (card != null) {
                    card.moveToExile(null, null, targetId, game);
                }
            }
            return true;
        }
        return false;
View Full Code Here

                Cards cards = new CardsImpl();
                cards.addAll(opponent.getHand());
                for (UUID cardId : cards) {
                    Card card = game.getCard(cardId);
                    if (card != null) {
                        card.moveToExile(exileId, "Ashiok, Nightmare Weaver", source.getSourceId(), game);
                    }
                }
                cards.clear();
                cards.addAll(opponent.getGraveyard());
                for (UUID cardId :cards) {
View Full Code Here

                cards.clear();
                cards.addAll(opponent.getGraveyard());
                for (UUID cardId :cards) {
                    Card card = game.getCard(cardId);
                    if (card != null) {
                        card.moveToExile(exileId, "Ashiok, Nightmare Weaver", 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.