From 05ac2d0a905689397b8790eac12e11ce906b77b7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 10:36:55 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectsParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 0108cee0..bf513c94 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -174,7 +174,9 @@ public class EffectsParser { effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); - effectModifier.arg1 = modValues.get(4).trim(); + + if (modValues.size() > 4) + effectModifier.arg1 = modValues.get(4).trim(); // Some HeathFull entries do not have an argument break; case MeleeDamageModifier: case OCV: