Examples of moveToExile()


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

Examples of mage.cards.Card.moveToExile()

        }

        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

Examples of mage.cards.Card.moveToExile()

        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

Examples of mage.game.permanent.Permanent.moveToExile()

      }
    }
    for (Iterator<Permanent> it = game.getBattlefield().getAllPermanents().iterator(); it.hasNext();) {
      Permanent perm = it.next();
      if (perm.getControllerId().equals(playerId)) {
        perm.moveToExile(null, "", null, game);
      }
    }
  }

  @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.moveToExile()

  @Override
  public boolean apply(Game game, Ability source) {
    Permanent permanent = game.getPermanent(source.getFirstTarget());
    if (permanent != null) {
      return permanent.moveToExile(exileId, exileZone, source.getId(), game);
    }
    return false;
  }

  @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.moveToExile()

  @Override
  public boolean replaceEvent(GameEvent event, Ability source, Game game) {
    if (((ZoneChangeEvent)event).getFromZone() == Zone.BATTLEFIELD) {
      Permanent permanent = ((ZoneChangeEvent)event).getTarget();
      if (permanent != null) {
        return permanent.moveToExile(null, "", source.getId(), game);
      }
    }
    else {
      Card card = game.getCard(event.getTargetId());
      if (card != null) {
View Full Code Here

Examples of mage.game.permanent.Permanent.moveToExile()

  @Override
  public boolean apply(Game game, Ability source) {
    Permanent permanent = game.getPermanent(source.getFirstTarget());
    if (permanent != null) {
      if (permanent.moveToExile(source.getSourceId(), "Mystifying Maze Exile", source.getId(), game)) {
        //create delayed triggered ability
        MystifyingMazeDelayedTriggeredAbility delayedAbility = new MystifyingMazeDelayedTriggeredAbility(source.getSourceId());
        delayedAbility.setSourceId(source.getSourceId());
        delayedAbility.setControllerId(source.getControllerId());
        game.addDelayedTriggeredAbility(delayedAbility);
View Full Code Here

Examples of mage.game.permanent.Permanent.moveToExile()

  @Override
  public boolean apply(Game game, Ability source) {
    Permanent permanent = game.getPermanent(source.getSourceId());
    if (permanent != null) {
      return permanent.moveToExile(null, "", source.getId(), game);
    }
    return false;
  }

  @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.moveToExile()

  @Override
  public boolean pay(Game game, UUID sourceId, UUID controllerId, boolean noMana) {
    Permanent permanent = game.getPermanent(sourceId);
    if (permanent != null) {
      paid = permanent.moveToExile(null, "", sourceId, game);
    }
    return paid;
  }

  @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.moveToExile()

        }       
        if (exileTarget != null) {
            Permanent permanentToExile = game.getPermanent(exileTarget.getFirstTarget());
            if (permanentToExile != null) {
                targetPlayerId = permanentToExile.getControllerId();
                result = permanentToExile.moveToExile(null, "", source.getSourceId(), game);
                this.applySearchAndExile(game, source, permanentToExile.getName(), targetPlayerId);               
            }
        }

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.