diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index ff07f483..4603d5c0 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -103,11 +103,12 @@ public class PowerActionParser { powerActionEntry.effects.add(effectDescription); break; case "ApplyEffects": + int level = Integer.parseInt(headerIterator.next()); + while (headerIterator.hasNext()) { effectDescription = new EffectDescription(); - effectDescription.level = Integer.parseInt(headerIterator.next()); + effectDescription.level = level; effectDescription.effect_id = headerIterator.next(); - effectDescription.type = headerIterator.next(); powerActionEntry.effects.add(effectDescription); } break;