Fixed that cards moved from hand to library were named in the log by default.

This commit is contained in:
LevelX2 2015-08-29 09:55:58 +02:00
parent e32e7a4638
commit e8983ae992

View file

@ -2983,8 +2983,8 @@ public abstract class PlayerImpl implements Player, Serializable {
case LIBRARY: case LIBRARY:
for (Card card : cards) { for (Card card : cards) {
fromZone = game.getState().getZone(card.getId()); fromZone = game.getState().getZone(card.getId());
boolean withName = fromZone.equals(Zone.BATTLEFIELD) || !card.isFaceDown(game); boolean hideCard = fromZone.equals(Zone.HAND) || fromZone.equals(Zone.LIBRARY);
if (moveCardToLibraryWithInfo(card, source == null ? null : source.getSourceId(), game, fromZone, true, withName)) { if (moveCardToLibraryWithInfo(card, source == null ? null : source.getSourceId(), game, fromZone, true, !hideCard)) {
successfulMovedCards.add(card); successfulMovedCards.add(card);
} }
} }