View Single Post
03-04-10, 07:31 PM   #8
coree
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 28
Originally Posted by v6o View Post
Where's the name var being set for filter[name] ?
Shouldn't it be

Not sure but don't you need to return a value at all times for it not to error out?
jeah, you are right. filter[a.name] is correct, but the sort function however didnt work.

Code:
local function sort(a,b)
  if (a and not filter[a.name]) and (b and filter[b.name]) then
    return false
  end
end
this case is the only one, the order has to change (first debuff is not in list and the other debuff is in list). and i dont need a return value for all times, but correct me if i'm wrong.
  Reply With Quote