mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Fixed possible game exception with empty library and commander movement (fixes #6952).
This commit is contained in:
parent
12c50420bf
commit
973c19c81f
1 changed files with 1 additions and 0 deletions
|
|
@ -998,6 +998,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
&& !(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
|
||||
cardInLib = getLibrary().removeFromTop(game);
|
||||
getLibrary().putCardToTopXPos(cardInLib, xFromTheTop, game);
|
||||
game.informPlayers(cardInLib.getLogName()
|
||||
+ " is put into "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue