diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index b6704a6f..d5b8b00b 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -61,7 +61,7 @@ public class PowerActionParser { powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim(); - String[] lineData = powerActionData.trim().split("\n"); + String[] lineData = powerActionData.split("\n"); // Parse effect entry header @@ -86,6 +86,8 @@ public class PowerActionParser { effectDescription.level = Integer.parseInt(headerIterator.next()); } + // Process key value pairs after header + return powerActionEntry; } }