From 0b5564267f639068076211e2b847928d72e14c54 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 17:19:35 -0400 Subject: [PATCH] More poweraction parsing work. --- src/engine/wpak/PowerActionParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());