Merge origin/master

This commit is contained in:
Oleg Agafonov 2018-12-07 01:21:32 +04:00
commit 1d450730c0
129 changed files with 5752 additions and 2644 deletions

View file

@ -2489,6 +2489,17 @@ public abstract class PlayerImpl implements Player, Serializable {
return false;
}
@Override
public void lookAtAllLibraries(Ability source, Game game) {
for(UUID playerId : game.getState().getPlayersInRange(this.getId(), game)){
Player player = game.getPlayer(playerId);
String playerName = this.getName().equals(player.getName()) ? "Your " : player.getName() + "'s ";
playerName += "library";
Cards cardsInLibrary = new CardsImpl(player.getLibrary().getTopCards(game, player.getLibrary().size()));
lookAtCards(playerName, cardsInLibrary, game);
}
}
private boolean handleLibraryCastableCards(Library library, Game game, UUID targetPlayerId) {
// for handling Panglacial Wurm
boolean alreadyChosenUse = false;