Skip to content

Commit

Permalink
Fix NPE with Skullspore Nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
TRT committed Nov 23, 2023
1 parent 9355e3f commit 2394b88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ else if (calcX[0].startsWith("TriggerRemembered")) {
}
else if (calcX[0].startsWith("TriggerObjects")) {
final SpellAbility root = sa.getRootAbility();
list = Iterables.filter((Iterable<?>) root.getTriggeringObject(AbilityKey.fromString(calcX[0].substring(14))), Card.class);
list = Iterables.filter((Iterable<?>) root.getTriggeringObjects().getOrDefault(
(AbilityKey.fromString(calcX[0].substring(14))), new CardCollection()), Card.class);
}
else if (calcX[0].startsWith("Triggered")) {
final SpellAbility root = sa.getRootAbility();
Expand Down

0 comments on commit 2394b88

Please sign in to comment.