Examples of moveToExile()


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()

            TargetCard target = new TargetCard(Zone.PICK, new FilterNonlandCard("nonland card to exile"));
            if (player.choose(Outcome.Exile, targetPlayer.getHand(), target, game)) {
                Card card = targetPlayer.getHand().get(target.getFirstTarget(), game);
                if (card != null) {
                    card.moveToExile(null, "", source.getSourceId(), game);
                }
            }

            return true;
        }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

                Card card = opponent.getLibrary().removeFromTop(game);
                if (card != null) {
                    if (card.getColor().contains(choice.getColor())) {
                        cardsWithColor++;
                    }
                    card.moveToExile(null, null, source.getSourceId(), game);
                }
            }
            if (cardsWithColor > 0) {
                new CreateTokenEffect(new OonaQueenFaerieToken(), cardsWithColor).apply(game, source);
            }
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()

                // exile the rest
                for(UUID uuid : allCards){
                    if(!target.getTargets().contains(uuid)){
                        Card card = game.getCard(uuid);
                        if(card != null){
                            card.moveToExile(null, "Doomsday", source.getSourceId(), game);
                        }     
                    }
                    else{
                        cards.add(uuid);
                    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

        if (player.getHand().size() > 0) {
            TargetCard target = new TargetCard(Zone.HAND, filter);
            player.choose(Outcome.Benefit, player.getHand(), target, game);
            Card card = player.getHand().get(target.getFirstTarget(), game);
            if (card != null) {
                card.moveToExile(getId(), "Chrome Mox (Imprint)", source.getSourceId(), game);
                Permanent permanent = game.getPermanent(source.getSourceId());
                if (permanent != null) {
                    permanent.imprint(card.getId(), game);
                }
                return true;
View Full Code Here

Examples of mage.cards.Card.moveToExile()

            int count = Math.min(player.getLibrary().size(), 4);
            for (int i = 0; i < count; i++) {
                Card card = player.getLibrary().removeFromTop(game);
                if (card != null) {
                    namesFiltered.add(card.getName());
                    card.moveToExile(id, "Moved these cards to exile", source.getSourceId(), game);
                }
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

        Player opponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));
        if (opponent != null) {
            for (int i = 0; i < 3; i++) {
                Card card = opponent.getLibrary().getFromTop(game);
                if (card != null) {
                    card.moveToExile(exileId, "Mindreaver", source.getSourceId(), game);
                }
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.cards.Card.moveToExile()

                UUID targetId = target.getFirstTarget();
                Card card = opponent.getLibrary().remove(targetId, game);
                if (card != null) {
                    card.setFaceDown(true);
                    card.setControllerId(player.getId());
                    card.moveToExile(getId(), sourcePermanent.getName(), source.getSourceId(), game);
                    game.addEffect(new PraetorsGraspPlayEffect(card.getId()), source);
                    game.addEffect(new PraetorsGraspRevealEffect(card.getId()), source);
                }
            }
            opponent.shuffleLibrary(game);
View Full Code Here

Examples of mage.cards.Card.moveToExile()

    @Override
    public boolean apply(Game game, Ability source) {
        for(UUID uuid : source.getTargets().get(0).getTargets()){
            Card card = game.getCard(uuid);
            if (card != null) {
                card.moveToExile(null, "Faerie Macabre", 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.