View Single Post
03-05-10, 01:26 AM   #9
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Noticed another thing, shouldn't it be PreAuraSetPosition(debuffs, max)

Sorting with only returning true errors out because it means everything should be before everything else. Only returning false gives you some weird sort orders.
If you're gonna sort, you have to sort.

Basically the sorting function is; Should A (true) be before B (false) and it keeps going until it's looped over the whole table to get the new order.

Edit: Can't you use " return a:GetID() < b:GetID() " at the end for the default UnitAura() order?

if prio[a.name] and not prio[b.name] then return true -- A has priority over B
elseif prio[b.name] and not prio[a.name] then return false -- B has priority over A
else return a:GetID() < b:GetID() -- Default UnitDebuff index order
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 03-05-10 at 02:19 AM.
  Reply With Quote