Examples of moveCardToExileWithInfo()


Examples of mage.players.Player.moveCardToExileWithInfo()

            for (UUID targetId : getTargetPointer().getTargets(game, source)) {
                Permanent permanent = game.getPermanent(targetId);
                if (permanent != null) {
                    Zone currentZone = game.getState().getZone(permanent.getId());
                    if (!currentZone.equals(Zone.EXILED) && (onlyFromZone == null || onlyFromZone.equals(Zone.BATTLEFIELD))) {
                        controller.moveCardToExileWithInfo(permanent, exileId, exileZone, source.getSourceId(), game, currentZone);
                    }
                } else {
                    Card card = game.getCard(targetId);
                    if (card != null) {
                        Zone currentZone = game.getState().getZone(card.getId());
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                } else {
                    Card card = game.getCard(targetId);
                    if (card != null) {
                        Zone currentZone = game.getState().getZone(card.getId());
                        if (!currentZone.equals(Zone.EXILED) && (onlyFromZone == null || onlyFromZone.equals(currentZone))) {
                            controller.moveCardToExileWithInfo(card, exileId, exileZone, source.getSourceId(), game, currentZone);
                        }
                    }
                }
            }
            return true;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                                break;
                            case LIBRARY:
                                controller.moveCardToLibraryWithInfo(card, sourceId, game, Zone.STACK, flag, true);
                                break;
                            case EXILED:
                                controller.moveCardToExileWithInfo(card, null, "", sourceId, game, Zone.STACK);
                                break;
                            default:
                                card.moveToZone(targetZone, sourceId, game, flag);
                        }                       
                    } else {
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

    @Override
    public boolean replaceEvent(GameEvent event, Ability source, Game game) {
        Permanent permanent = ((ZoneChangeEvent)event).getTarget();
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && permanent != null) {
            return controller.moveCardToExileWithInfo(permanent, null, "", source.getSourceId(), game, Zone.BATTLEFIELD);
        }
        return false;
    }

    @Override
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

            int affectedTargets = 0;
            if (targetPointer.getTargets(game, source).size() > 0) {
                for (UUID spellId : targetPointer.getTargets(game, source)) {
                    Spell spell = game.getStack().getSpell(spellId);
                    if (spell != null) {
                        controller.moveCardToExileWithInfo(spell, null, "", source.getSourceId(), game, Zone.STACK);
                        affectedTargets++;
                    }
                }
            }
            return affectedTargets > 0;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

            return false;
        }
        Permanent permanent = game.getPermanent(source.getSourceId());
        Player controller = game.getPlayer(source.getControllerId());
        if (permanent != null) {
            return controller.moveCardToExileWithInfo(permanent, null, null, source.getSourceId(), game, null);
        } else {
            Card card = game.getCard(source.getSourceId());
            if (card != null) {
                return controller.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, null);
            }
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        if (permanent != null) {
            return controller.moveCardToExileWithInfo(permanent, null, null, source.getSourceId(), game, null);
        } else {
            Card card = game.getCard(source.getSourceId());
            if (card != null) {
                return controller.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, null);
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

        do {
            card = player.getLibrary().getFromTop(game);
            if (card == null) {
                break;
            }
            player.moveCardToExileWithInfo(card, exile.getId(), exile.getName(), source.getSourceId(), game, Zone.LIBRARY);
        } while (player.isInGame() && card.getCardType().contains(CardType.LAND) || card.getManaCost().convertedManaCost() >= sourceCost);

        if (card != null) {
            if (player.chooseUse(outcome, "Use cascade effect on " + card.getName() + "?", game)) {
                if(player.cast(card.getSpellAbility(), game, true)){
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                for (UUID targetId: targets.get(0).getTargets()) {
                    Card card = game.getCard(targetId);
                    if (card == null || !game.getState().getZone(targetId).equals(Zone.GRAVEYARD)) {
                        return false;
                    }
                    paid |= controller.moveCardToExileWithInfo(card, null, null, sourceId, game, Zone.GRAVEYARD);
                }
            }

        }
        return paid;
View Full Code Here

Examples of mage.players.Player.moveCardToExileWithInfo()

                for (UUID targetId: targets.get(0).getTargets()) {
                    Permanent permanent = game.getPermanent(targetId);
                    if (permanent == null) {
                        return false;
                    }
                    paid |= controller.moveCardToExileWithInfo(permanent, sourceId, exileZone, sourceId, game, Zone.BATTLEFIELD);
                }
            }
        }
        return paid;
    }
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.