PHP код:
if tonumber(iName) then
iNamen = GetSpellInfo(iName);
else
iNamen = iName;
end
local buffName, _, iconTexture, count, _, duration, expirationTime = UnitAura(icon.Unit, iNamen, nil, icon.filter);
и заменить на следующие
PHP код:
iNamen = iName;
local UnitAuraChanged = function(unit,name,_,filter)
local n, _, t, c, _, d, e, u,_,_,id = UnitAura(unit, name, nil, filter);
if n then return n, _, t, c, _, d, e, u end
name = tonumber(name)
if name then
for i=1,60 do
n, _, t, c, _, d, e, u, _, _, id = UnitAura(unit, i, filter);
if not n then return end
if id == name then return n, _, t, c, _, d, e, u end
end
end
end
local buffName, _, iconTexture, count, _, duration, expirationTime = UnitAuraChanged(icon.Unit, iNamen, nil, icon.filter);
Пример того, как это работает у меня: