Normally you are fine. Only two problems can appear:
The spellname of the ability differs from the spellname of the debuff. That way tracking the spellid of the ability would result in a different spellname and thus in an insufficient UnitAura() match.
The other problem can occur if different auras are applied of the same name but different effects. This can only circumvented by testing the spellid return value of UnitAura() against the spellid used for GetSpellInfo().
There is one problem with auras of the same name though. At least if checking UnitAura with spellname+rank and not via index. If two auras of the same name are applied: which one will be returned?
Btw this is the buff list SacriRaidBuffed is using:
Food:
Flask:
Lua Code:
{105693, 105689, 105691, 105694, 105696, }
Buffs:
Lua Code:
stat = { 90363, 20217, 115921, 1126 },
stamina = { 469, 6307, 103127, 90364, 21562},
atkpwr = { 19506, 57330, 6673 },
atkspeed = { 55610, 113742, 30809, 128432, 128433 },
spllpwr = { 77747, 109773, 126309, 61316, 1459 },
spllhaste = { 24907, 15473, 51470, 49868 },
crit = { 17007, 1459, 61316, 116781, 97229, 24604, 90309, 126373, 126309 },
mastery = { 116956, 19740, 93435, 128997 },
Btw...we now got:
http://www.wowpedia.org/API_Frame_RegisterUnitEvent
Which is pretty awesome for this kind of buff/debuff tracking.
Code:
frame:RegisterUnitEvent("UNIT_AURA", "unitId")