mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
fixed possible NPEs
This commit is contained in:
parent
c0f837c2e0
commit
a327668660
7 changed files with 57 additions and 43 deletions
|
|
@ -111,7 +111,9 @@ public class ShapeAnew extends CardImpl<ShapeAnew> {
|
|||
nonArtifactCards.add(card);
|
||||
}
|
||||
player.revealCards("Shape Anew", revealed, game);
|
||||
artifactCard.putOntoBattlefield(game, Constants.Zone.LIBRARY, source.getId(), player.getId());
|
||||
if (artifactCard != null) {
|
||||
artifactCard.putOntoBattlefield(game, Constants.Zone.LIBRARY, source.getId(), player.getId());
|
||||
}
|
||||
player.getLibrary().addAll(nonArtifactCards.getCards(game), game);
|
||||
player.shuffleLibrary(game);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue