Originally Posted by v6o
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.