Package mage.game

Examples of mage.game.ExileZone.copy()


    @Override
    public boolean apply(Game game, Ability source) {
        ExileZone exile = game.getExile().getExileZone(exileId);
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && exile != null) {
            exile = exile.copy();
            for (UUID cardId : exile) {
                Card card = game.getCard(cardId);
                Player owner = game.getPlayer(card.getOwnerId());
                if (owner != null) {
                    switch (zone) {
View Full Code Here


    @Override
    public boolean apply(Game game, Ability source) {
        ExileZone exile = game.getExile().getExileZone(source.getSourceId());
        if (exile != null) {
            exile = exile.copy();
            for (UUID cardId: exile) {
                Card card = game.getCard(cardId);
                card.moveToZone(Zone.BATTLEFIELD, source.getSourceId(), game, false);
                Permanent returnedCreature = game.getPermanent(cardId);
                if (returnedCreature != null) {
View Full Code Here

        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            UUID exileId = source.getSourceId();
            ExileZone exile = game.getExile().getExileZone(CardUtil.getCardExileZoneId(game, source));
            if (exile != null) {
                exile = exile.copy();
                for (UUID cardId : exile) {
                    Card card = game.getCard(cardId);
                    if (card != null) {
                        controller.putOntoBattlefieldWithInfo(card, game, Zone.EXILED, source.getSourceId());
                    }
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        UUID exileId = source.getSourceId();
        ExileZone exile = game.getExile().getExileZone(exileId);
        if (exile != null) {
            exile = exile.copy();
            for (UUID cardId : exile) {
                Card card = game.getCard(cardId);
                card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), card.getOwnerId());
            }
            game.getExile().getExileZone(exileId).clear();
View Full Code Here

                dragon.sacrifice(source.getSourceId(), game);
            }
        }
        ExileZone exile = game.getExile().getExileZone(exileId);
        if (exile != null) {
            exile = exile.copy();
            for (UUID cardId : exile) {
                Card card = game.getCard(cardId);
                card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), source.getControllerId());
            }
            game.getExile().getExileZone(exileId).clear();
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.