From 5e5203aa36906f218dc501d6f4bd733080adb540 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 7 Sep 2024 15:16:05 -0400 Subject: [PATCH] Teleport bool parsed --- src/engine/wpak/PowerActionParser.java | 5 ++++- src/engine/wpak/data/PowerAction.java | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 67f5b298..e684d7cb 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -186,9 +186,12 @@ public class PowerActionParser { trackEntry.max = Integer.parseInt(headerIterator.next()); powerAction.trackEntry = trackEntry; break; + case "Teleport": + if (headerIterator.hasNext()) + powerAction.ignoreNoTeleSpire = Boolean.parseBoolean(headerIterator.next()); + break; case "Recall": // No arguments for these tags or not parsed case "Summon": - case "Teleport": case "TreeChoke": case "SimpleDamage": case "MobRecall": // One argument always zero diff --git a/src/engine/wpak/data/PowerAction.java b/src/engine/wpak/data/PowerAction.java index 0725f68c..ac893b70 100644 --- a/src/engine/wpak/data/PowerAction.java +++ b/src/engine/wpak/data/PowerAction.java @@ -48,6 +48,7 @@ public class PowerAction { public mbEnums.MobBehaviourType rootFsmID; public int splashDamageMin; public int splashDamageMax; + public boolean ignoreNoTeleSpire = false; }