- Added a null check for The Great Aurora

This commit is contained in:
jeff 2016-07-20 16:08:42 -05:00
parent 8368a8379c
commit c241b45a91

View file

@ -117,10 +117,12 @@ class TheGreatAuroraEffect extends OneShotEffect {
player.moveCards(player.getHand(), Zone.LIBRARY, source, game);
List<Permanent> list = permanentsOwned.remove(player.getId());
permanentsCount.put(playerId, handCards + (list != null ? list.size() : 0));
for (Permanent permanent : list) {
player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
if (list != null) {
for (Permanent permanent : list) {
player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
}
player.shuffleLibrary(source, game);
}
player.shuffleLibrary(source, game);
}
}