diff --git a/src/engine/wpak/EffectsParser.java b/src/engine/wpak/EffectsParser.java index 4d633ab6..ee4490bf 100644 --- a/src/engine/wpak/EffectsParser.java +++ b/src/engine/wpak/EffectsParser.java @@ -60,12 +60,14 @@ public class EffectsParser { EffectEntry effectEntry = new EffectEntry(); - // Remove all lines that contain a # and leading/trailing blank lines + // Parse fields that lie outside the other tags + effectEntry.isItemEffect = effectData.contains("IsItemEffect"); effectEntry.isSpireEffect = effectData.contains("IsSpireEffect"); effectEntry.ignoreNoMod = effectData.contains("IgnoreNoMod"); effectEntry.dontSave = effectData.contains("DontSave"); + // Remove all lines that contain a # and leading/trailing blank lines effectData = effectData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", ""); effectData = effectData.trim();