diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index e4e8323d..a4bfeb34 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -261,6 +261,9 @@ public class PowersParser { case "MAXNUMPLAYERTARGETS": powerEntry.maxPlayerTargets = Integer.parseInt(lineValues[1].trim()); break; + case "ISADMINPOWER": + powerEntry.isAdminPower = Boolean.parseBoolean(lineValues[1].trim()); + break; default: Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id); } diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index c07605fd..cd71a181 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -58,6 +58,8 @@ public class PowerEntry { public int pulseDuration; public int maxMobTargets; public int maxPlayerTargets; + public boolean isAdminPower = false; + }