diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 2f84aca2..2e6a4349 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -74,8 +74,8 @@ public class PowersParser { // Cleanup dangling tags and lines that contain a # and leading/trailing blank lines - powerString = new StringBuilder(powerString.toString().replaceAll("CONDITIONBEGINCONDITIONEND", "") - .replaceAll("(?m)^.*#.*\r?\n?", "")); + powerString = new StringBuilder(powerString.toString().replaceAll("CONDITIONBEGINCONDITIONEND", "")); + powerString = new StringBuilder(powerString.toString().replaceAll("(?m)^.*#.*\r?\n?", "")); conditionString = new StringBuilder(conditionString.toString().replaceAll("(?m)^.*#.*\r?\n?", ""));