From f2eaf61bd00b8084cb8ab85061a46898ef4e64fe Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 15:31:26 -0400 Subject: [PATCH] PowerAction parsing work. --- src/engine/wpak/PowerActionParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 7058bc5a..9b16a721 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -93,10 +93,14 @@ public class PowerActionParser { powerActionEntry.arg1 = Integer.parseInt(headerIterator.next()); powerActionEntry.arg2 = Integer.parseInt(headerIterator.next()); break; + case "Transform": + case "Invis": + powerActionEntry.effect_id = headerIterator.next(); + powerActionEntry.arg1 = Integer.parseInt(headerIterator.next()); + break; case "ApplyEffect": case "DeferredPower": case "DirectDamage": - case "Invis": while (headerIterator.hasNext()) { effectDescription = new EffectDescription(); effectDescription.effect_id = headerIterator.next();