index da2eafd..3dcd3b2 100644
--- a/GilesTrinity.cs
+++ b/GilesTrinity.cs
@@ -12731,7 +12731,7 @@ namespace GilesTrinity
break;
case "AOEBarbHealth":
healthlevels = config[1].Split(new string[] { " " }, StringSplitOptions.None);
- for (int i = 1; i <= 13; i++)
+ for (int i = 1; i <= healthlevels.Length; i++)
{
switch (i)
{
@@ -12785,7 +12785,7 @@ namespace GilesTrinity
break;
case "AOEMonkHealth":
healthlevels = config[1].Split(new string[] { " " }, StringSplitOptions.None);
- for (int i = 1; i <= 13; i++)
+ for (int i = 1; i <= healthlevels.Length; i++)
{
switch (i)
{
@@ -12839,7 +12839,7 @@ namespace GilesTrinity
break;
case "AOEWizardHealth":
healthlevels = config[1].Split(new string[] { " " }, StringSplitOptions.None);
- for (int i = 1; i <= 13; i++)
+ for (int i = 1; i <= healthlevels.Length; i++)
{
switch (i)
{
@@ -12893,7 +12893,7 @@ namespace GilesTrinity
break;
case "AOEWitchHealth":
healthlevels = config[1].Split(new string[] { " " }, StringSplitOptions.None);
- for (int i = 1; i <= 13; i++)
+ for (int i = 1; i <= healthlevels.Length; i++)
{
switch (i)
{
@@ -12947,7 +12947,7 @@ namespace GilesTrinity
break;
case "AOEDemonHealth":
healthlevels = config[1].Split(new string[] { " " }, StringSplitOptions.None);
- for (int i = 1; i <= 13; i++)
+ for (int i = 1; i <= healthlevels.Length; i++)
{
switch (i)
{
@@ -13001,7 +13001,7 @@ namespace GilesTrinity
break;
case "AOERadius":
healthlevels = config[1].Split(new string[] { " " }, StringSplitOptions.None);
- for (int i = 1; i <= 13; i++)
+ for (int i = 1; i <= healthlevels.Length; i++)
{
switch (i)
{