Code:
function Disease()
for effectnumber=1, EffectList:GetCount(), 1 do
if EffectList:Get(effectnumber):IsCurable() then
Turbine.Shell.WriteLine(EffectList:Get(effectnumber):GetName());
if (EffectList:Get(effectnumber):GetName() == "Effectname here") then
return 0.5;
break;
end
end
end
return 0;
end
I'd rewrite the function, I hope I get better results now, the WriteLine command is only to log the Buffnames.