Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohedron committed Aug 22, 2024
1 parent fd00c1c commit 7815aed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Mage/src/main/java/mage/players/PlayerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ public boolean putCardOnTopXOfLibrary(Card card, Game game, Ability source, int
&& !(card instanceof PermanentToken) && !card.isCopy()) {
Card cardInLib = getLibrary().getFromTop(game);
if (cardInLib != null && cardInLib.getId().equals(card.getMainCard().getId())) { // check needed because e.g. commander can go to command zone
cardInLib = getLibrary().drawFromTop(game); // TODO: refactor so this separate step isn't needed
getLibrary().putCardToTopXPos(cardInLib, xFromTheTop, game);
game.informPlayers((withName ? cardInLib.getLogName() : "A card")
+ " is put into "
Expand Down

0 comments on commit 7815aed

Please sign in to comment.