Package mage.target.common

Examples of mage.target.common.TargetCardInExile.clearChosen()


                    Card card = game.getCard(target2.getFirstTarget());
                    if (card != null) {
                        game.getExile().removeCard(card, game);
                        controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.EXILED, true, false);
                    }
                    target2.clearChosen();
                }
                if (scrollRackExileZone.count(filter, game) == 1) {
                    Card card = scrollRackExileZone.get(scrollRackExileZone.iterator().next(), game);
                    controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.EXILED, true, false);
                }
View Full Code Here


                    if (card != null) {                           
                        controller.cast(card.getSpellAbility(), game, true);
                    } else {
                        break;
                    }
                    target.clearChosen();
                }
            }
            return true;
        }
View Full Code Here

                    Card card = game.getCard(target.getFirstTarget());
                    if (card != null) {
                        game.getExile().removeCard(card, game);
                        player.cast(card.getSpellAbility(), game, true);
                    }
                    target.clearChosen();
            }
            return true;
        }    
        return false;
    }
View Full Code Here

                    if (controller.cast(card.getSpellAbility(), game, true))
                    {
                        game.getExile().removeCard(card, game);
                    }
                }
                target.clearChosen();
        }

        return true;
    }
}
View Full Code Here

                            if (controller.cast(card.getSpellAbility(), game, true))
                            {
                                game.getExile().removeCard(card, game);
                            }
                        }
                        target.clearChosen();
                }
            }
            // move cards not cast to graveyard
            ExileZone exile = game.getExile().getExileZone(source.getSourceId());
            if (exile != null) {
View Full Code Here

                        Card card = game.getCard(target.getFirstTarget());
                        if (card != null && !card.getId().equals(spell.getSourceId())) {
                            game.getExile().removeCard(card, game);
                            return player.cast(card.getSpellAbility(), game, true);
                        }
                        target.clearChosen();
                    }
                }
                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.