Examples of shuffleLibrary()


Examples of mage.players.Player.shuffleLibrary()

                Card card = player.getLibrary().remove(cardId, game);
                if (card != null){
          card.moveToZone(Zone.HAND, source.getId(), game, false);
                }
            }
            player.shuffleLibrary(game);
        }
        return true;
    }

    @Override
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

                  permanent.setTapped(true);
              }
            }
          }
        }
        player.shuffleLibrary(game);
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

  public void mulligan(UUID playerId) {
    Player player = getPlayer(playerId);
    int numCards = player.getHand().size();
    player.getLibrary().addAll(player.getHand().getCards(this), this);
    player.getHand().clear();
    player.shuffleLibrary(this);
    player.drawCards(numCards - 1, this);
    fireInformEvent(player.getName() + " mulligans down to " + Integer.toString(numCards - 1) + " cards");
  }

  @Override
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

        if (card != null) {
          card.moveToZone(Zone.HAND, source.getId(), game, false);
          revealed.add(card);
        }
      }
      player.shuffleLibrary(game);
      player.revealCards(revealed, game);
    }
    return true;
  }
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

            for (UUID cardId: (List<UUID>)target.getTargets()) {
                Card card = player.getLibrary().remove(cardId, game);
                if (card != null)
          cards.add(card);
            }
            player.shuffleLibrary(game);
      for (Card card: cards) {
        card.moveToZone(Zone.LIBRARY, source.getId(), game, true);
      }
        }
        return true;
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

        Permanent permanent = game.getPermanent(card.getId());
        if (permanent != null)
          permanent.setTapped(true);
      }

      player.shuffleLibrary(game);
    }
    return true;

  }
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

    }
    for (UUID cardId: remove) {
      game.getExile().add(player.getLibrary().remove(cardId, game));
    }
    game.getPlayer(source.getControllerId()).lookAtCards(new CardsImpl(Zone.PICK, player.getLibrary().getCards(game)), game);
    player.shuffleLibrary(game);
    return true;
  }

  @Override
  public HauntingEchoesEffect copy() {
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

              Permanent land = game.getPermanent(card.getId());
              if (land != null)
                land.setTapped(true);
            }
          }
          player.shuffleLibrary(game);
        }
        return true;
      }
    }
    return false;
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

      numCards += 1;
      mulliganed.add(playerId);
    }
    player.getLibrary().addAll(player.getHand().getCards(this), this);
    player.getHand().clear();
    player.shuffleLibrary(this);
    player.drawCards(numCards - 1, this);
    fireInformEvent(player.getName() + " mulligans down to " + Integer.toString(numCards - 1) + " cards");
  }

  @Override
View Full Code Here

Examples of mage.players.Player.shuffleLibrary()

        if (card != null) {
            Player player = game.getPlayer(card.getOwnerId());
            if (player != null) {
                Zone fromZone = game.getState().getZone(card.getId());
                player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, fromZone, true, true);
                player.shuffleLibrary(game);
                return true;
            }
        }
        return false;
    }
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.