mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed that cards moved from hand to library were named in the log by default.
This commit is contained in:
parent
e32e7a4638
commit
e8983ae992
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue