mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Prevent a possible NPE.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
newLibrary.addAll(filteredCards);
|
||||
playerLibraries.put(p, newLibrary);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user