fixed possible NPEs

This commit is contained in:
North 2013-03-02 17:53:10 +02:00
parent c0f837c2e0
commit a327668660
7 changed files with 57 additions and 43 deletions

View file

@ -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;