I said it was for Empowerments. OKF is a different block of code.
OKF edit:
Code:
function()
aura_env.name, _, aura_env.icon = GetSpellInfo(aura_env.spellid)
-- Set Saturation State
if select(4,UnitBuff("player", aura_env.name)) ~= nil then
WeakAuras.regions[aura_env.id].region.icon:SetDesaturated(false)
return true
if aura_env.glowy == true then
ActionButton_ShowOverlayGlow(WeakAuras.regions[aura_env.id].region)
end
else
WeakAuras.regions[aura_env.id].region.icon:SetDesaturated(true)
ActionButton_HideOverlayGlow(WeakAuras.regions[aura_env.id].region)
end
end
ADD UNTRIGGER:
Code:
function()
aura_env.name, _, aura_env.icon = GetSpellInfo(aura_env.spellid)
-- Set Saturation State
if select(4,UnitBuff("player", aura_env.name)) ~= nil then
WeakAuras.regions[aura_env.id].region.icon:SetDesaturated(false)
if aura_env.glowy == true then
ActionButton_ShowOverlayGlow(WeakAuras.regions[aura_env.id].region)
end
else
WeakAuras.regions[aura_env.id].region.icon:SetDesaturated(true)
ActionButton_HideOverlayGlow(WeakAuras.regions[aura_env.id].region)
return true
end
end