1. Try buff2.duration == false. I don't nil the entries out because they will be reused eventually.
Thanks, will give that a go.
2. I never played a paladin past level 5. Are these buff counts an unusual thing? I.e. are they 1 and shouldn't be shown?
Correct. There are no charges on Divine Favor and Light's Grace, they're just buffs (from talents). What's odd is the previous (pre merging the version from trunk) version did not exhibit this problem.
Buff sorting code worked nearly perfectly, though I cannot figure out how to make auras and other buffs with no duration show up at the end (it puts them at the beginning). I tried buff2.duration == nil but that didn't seem to work.
Oh and I'm seeing a buff count on divine favor and light's grace, which I wasn't a few days ago.
Is there any easy way to add sorting of buffs by duration? I used to use buffsort with buffalo and it worked fine, but with buffalo2 for some reason it stops working when I have buffs, log out, and log back on.
Unfortunately my OCD compels me to find a solution but with my limited LUA knowledge at the moment all I'm really doing is breaking things.