This commit is contained in:
Alex W. Jackson 2022-03-30 19:49:45 -04:00
parent ec4feaddfe
commit 09b37a94f8

View file

@ -1008,7 +1008,7 @@ public abstract class PlayerImpl implements Player, Serializable {
if (card.moveToZone(Zone.LIBRARY, source, game, true)
&& !(card instanceof PermanentToken) && !card.isCopy()) {
Card cardInLib = getLibrary().getFromTop(game);
if (cardInLib != null && cardInLib.getId().equals(card.getId())) { // check needed because e.g. commander can go to command zone
if (cardInLib != null && cardInLib.getId().equals(card.getMainCard().getId())) { // check needed because e.g. commander can go to command zone
cardInLib = getLibrary().removeFromTop(game);
getLibrary().putCardToTopXPos(cardInLib, xFromTheTop, game);
game.informPlayers((withName ? cardInLib.getLogName() : "A card")