- Prevent a possible NPE.

This commit is contained in:
Sloth
2014-08-04 20:41:08 +00:00
parent 4571aecf48
commit 1ec07dcae7

View File

@@ -42,9 +42,8 @@ public class RestartGameEffect extends SpellAbilityEffect {
if (leaveZone != null) {
filteredCards = CardLists.filter(p.getCardsIn(leaveZone),
CardPredicates.restriction(leaveRestriction.split(","), p, sa.getHostCard()));
}
newLibrary.addAll(filteredCards);
}
playerLibraries.put(p, newLibrary);
}