diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 88543096..bf54fabe 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -139,6 +139,13 @@ public class PowerActionParser { statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next()); powerActionEntry.statTransfer = statTransfer; break; + case "CHARM": + effectDescription = new EffectDescription(); + effectDescription.effect_id = headerIterator.next(); + effectDescription.level = Integer.parseInt(headerIterator.next()); + effectDescription.type = headerIterator.next(); + powerActionEntry.effects.add(effectDescription); + break; case "Teleport":// No arguments for these tags case "TreeChoke": break; diff --git a/src/engine/wpak/data/EffectDescription.java b/src/engine/wpak/data/EffectDescription.java index 1dadc45b..c3c778f2 100644 --- a/src/engine/wpak/data/EffectDescription.java +++ b/src/engine/wpak/data/EffectDescription.java @@ -10,6 +10,7 @@ package engine.wpak.data; public class EffectDescription { public String effect_id; + public String type; public int level; public String message; public int cycleDuration;