mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
Fix NPE with Skullspore Nexus
This commit is contained in:
@@ -749,7 +749,8 @@ public class AbilityUtils {
|
|||||||
}
|
}
|
||||||
else if (calcX[0].startsWith("TriggerObjects")) {
|
else if (calcX[0].startsWith("TriggerObjects")) {
|
||||||
final SpellAbility root = sa.getRootAbility();
|
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")) {
|
else if (calcX[0].startsWith("Triggered")) {
|
||||||
final SpellAbility root = sa.getRootAbility();
|
final SpellAbility root = sa.getRootAbility();
|
||||||
|
|||||||
Reference in New Issue
Block a user