diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 344f6914..27bedf08 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -225,7 +225,9 @@ public class PowerActionParser { case "LEVELCAP": arguments = lineValues[1].trim().split("\\s+"); powerActionEntry.levelCap = Integer.parseInt(arguments[0]); - powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]); + + if (arguments.length > 1) // Not all level caps have a curve + powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]); break; case "CLEARAGGRO": powerActionEntry.clearAggro = Boolean.parseBoolean(lineValues[1].trim());