pet = true |
} |
function PostUpdateAuraIcon(self, icons, unit, button, index) |
if (castby[button.owner] or unit=='player') and not(expirationTime == 0 and duration == 0) then |
button.cd:Show() |
else |
button.cd:Hide() |
end |
|
local name, _, _, _, dtype, duration, expirationTime = UnitAura(unit, index, button.filter) |
|
if button.debuff then |
if (castby[button.owner] or unit=='player') and not(expirationTime == 0 and duration == 0) then |
button.cd:Show() |
else |
button.cd:Hide() |
end |
button.icon:SetDesaturated(not (castby[button.owner] or unit == 'player' or unit=='pet' or unit=='vehicle')) |
--button.icon:SetDesaturated(not (castby[button.owner] or unit == 'player' or unit=='pet' or unit=='vehicle')) |
button.icon:SetPoint('TOPLEFT', 2, -2) |
button.icon:SetPoint('BOTTOMRIGHT', -2, 2) |
else |
button.icon:SetAllPoints() |
button.icon:SetDesaturated(false) |
--button.icon:SetDesaturated(false) |
end |
end |
end |