From 345e729d1a84b13d7732195ea7d64a699d7c4916 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 19:09:26 -0400 Subject: [PATCH] More PowerAction parsing work. --- src/engine/wpak/PowerActionParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;