Skip to content

Commit

Permalink
Merge pull request Card-Forge#4198 from tool4ever/fixNPE23
Browse files Browse the repository at this point in the history
Fix NPE with Skullspore Nexus
  • Loading branch information
Northmoc authored Nov 24, 2023
2 parents 1fa6483 + 2394b88 commit 0e84ce2
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 0e84ce2

Please sign in to comment.