mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- NPE guard for previous commit
This commit is contained in:
@@ -1357,7 +1357,7 @@ public class ComputerUtil {
|
|||||||
topStack.getParam("NumDmg"), topStack);
|
topStack.getParam("NumDmg"), topStack);
|
||||||
final SpellAbility sub = topStack.getSubAbility();
|
final SpellAbility sub = topStack.getSubAbility();
|
||||||
boolean noRegen = false;
|
boolean noRegen = false;
|
||||||
if (sub.getApi() == ApiType.Pump) {
|
if (sub != null && sub.getApi() == ApiType.Pump) {
|
||||||
final List<String> keywords = sub.hasParam("KW") ? Arrays.asList(sub.getParam("KW").split(" & ")) : new ArrayList<String>();
|
final List<String> keywords = sub.hasParam("KW") ? Arrays.asList(sub.getParam("KW").split(" & ")) : new ArrayList<String>();
|
||||||
for (String kw : keywords) {
|
for (String kw : keywords) {
|
||||||
if (kw.contains("can't be regenerated")) {
|
if (kw.contains("can't be regenerated")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user