From 547b101c60aa8e3a0176e34647036776cb0e079b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Aug 2024 15:00:18 -0400 Subject: [PATCH] More powerAction work. --- src/engine/wpak/PowersParser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 03c187ee..6fe38d13 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -114,10 +114,15 @@ public class PowersParser { String lineValue = iterator.next(); String[] linevalues = lineValue.split("="); String key = linevalues[0].trim(); + PowerAction powerAction; + String[] arguments; switch (key) { case "ACTION": - PowerAction powerAction = new PowerAction(); + powerAction = new PowerAction(); + arguments = linevalues[1].split(" "); + powerAction.effect_id = arguments[0]; + break; default: