From b1f14c4beb6375808fd6a8b1dcb738e3e480793b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:23:17 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 3 +++ src/engine/wpak/data/PowerEntry.java | 1 + 2 files changed, 4 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 62b506b2..f7bf3454 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -210,6 +210,9 @@ public class PowersParser { case "CANCASTWHILEMOVING": powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim()); break; + case "CANCASTWHILEFLYING": + powerEntry.canCastWhileFlying = Boolean.parseBoolean(lineValues[1].trim()); + break; case "BLADETRAILS": powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim()); break; diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index 33cba54f..a553549c 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -62,5 +62,6 @@ public class PowerEntry { public boolean isAdminPower = false; public int casterPulseParticle; public ArrayList targetEffectPrereqs = new ArrayList<>(); + public boolean canCastWhileFlying = false; }