From d622406912a78f18e9676da0ade16a2befef44c8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 10:09:54 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectsParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index e0c01e7b..ac05969f 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -190,7 +190,11 @@ public class EffectsParser { case ImmuneTo: case BlackMantle: effectModifier.arg1 = modValues.get(1).trim(); - effectModifier.arg2 = modValues.get(2).trim(); + + // Some BlockedPowerType entries have only one argument + + if (modValues.size() > 2) + effectModifier.arg2 = modValues.get(2).trim(); break; case NoMod: case ConstrainedAmbidexterity: