JarJar tries to change this code of your plugin
Code:
if (buff.TimeLeftSeconds[0] == 0 && buff.TimeLeftSeconds[1] == 0 && buff.TimeLeftSeconds[2] == 0)
{
if (skill.SnoPower.Sno == Hud.Sno.SnoPowers.Wizard_StormArmor.Sno)
{
remainingSeconds = buff.TimeLeftSeconds[3]; // At least one rune uses "extra" slot!
}
}
else
{
remainingSeconds = Math.Max(buff.TimeLeftSeconds[0], Math.Max(buff.TimeLeftSeconds[1], buff.TimeLeftSeconds[2]));
}
for this one
Code:
for (int i = 0; i < buff.TimeLeftSeconds.Length ;i++)
{
if (buff.TimeLeftSeconds[i] > remainingSeconds)
remainingSeconds = buff.TimeLeftSeconds[i];
}
buff.TimeLeftSeconds has a length that a priori is unknown and the value you are looking for can be in any position and now just look at 0, 1 and 2
An alternative I will try later is: find the first value greater than zero
Looking at how you did it, I managed to include the remaining time of the skills on the original bar