diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 5414005f..88543096 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -123,6 +123,7 @@ public class PowerActionParser { statTransfer.toCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); + powerActionEntry.statTransfer = statTransfer; break; case "TransferStatOT": statTransfer = new StatTransfer(); @@ -136,6 +137,7 @@ public class PowerActionParser { statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); statTransfer.transfer_action = headerIterator.next(); statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next()); + powerActionEntry.statTransfer = statTransfer; break; case "Teleport":// No arguments for these tags case "TreeChoke": @@ -202,6 +204,11 @@ public class PowerActionParser { case "REMOVEALL": powerActionEntry.removeAll = Boolean.parseBoolean(lineValues[1].trim()); break; + case "EFFECTID": + effectDescription = new EffectDescription(); + effectDescription.effect_id = lineValues[1].trim(); + powerActionEntry.effects.add(effectDescription); + break; case "WEAROFFEFFECTOTHER": // Keys not parsed go here. case "WEAROFFEFFECTSELF": break;