Actually, the loop variable of a for loop always has a scope that is local to the for loop itself. So I think Kunter's okay in this case.
As for finding debuff names - look up Turbine.Gameplay.Effect - specifically GetCategory. And then look up Turbine.Gameplay.EffectCategory. You ought to be able to cobble something together to look for specific types of debuffs.
Edit: Mind you, var should be local. Heck, I'd probably skip naming it, and just return 0.5 from inside the if statement, and then have a second return at the end of the function.
|