From bda4bb66e1cc6e48b70c2ff77e2da1f681449686 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 17:34:15 -0400 Subject: [PATCH] More poweraction parsing work. --- src/engine/wpak/PowerActionParser.java | 3 +++ src/engine/wpak/data/PowerActionEntry.java | 1 + 2 files changed, 4 insertions(+) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index bbe88363..e704d0c4 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -240,6 +240,9 @@ public class PowerActionParser { case "TARGETBECOMESPET": powerActionEntry.targetBecomesPet = Boolean.parseBoolean(lineValues[1].trim()); break; + case "DESTROYOLDPET": + powerActionEntry.destroyOldPet = Boolean.parseBoolean(lineValues[1].trim()); + break; case "APPLYEFFECTOTHER": case "APPLYEFFECTSELF": case "WEAROFFEFFECTOTHER": // Keys not parsed go here. diff --git a/src/engine/wpak/data/PowerActionEntry.java b/src/engine/wpak/data/PowerActionEntry.java index 2ab4a7f0..9181306d 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -42,5 +42,6 @@ public class PowerActionEntry { public boolean removeAll = false; public boolean clearAggro = false; public boolean targetBecomesPet = false; + public boolean destroyOldPet = false; }