Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
- local castTime = select(4,GetSpellInfo(30108))
- local castFinish = GetTime() + (castTime / 1000)
- local lastExpires = 0
- local i = 1
- while(UnitDebuff("target", i)) do
- local _, _, _, _, _, _, expires, _, _, _, spellID = UnitDebuff("target", i)
- if aura_env.UA[spellID] then
- if expires > lastExpires then
- lastExpires = expires
- end
- end
- i=i+1
- end
- if castFinish > lastExpires then
- WeakAuras.regions[aura_env.id].region:SetDesaturated(true)
- else
- WeakAuras.regions[aura_env.id].region:SetDesaturated(false)
- end
- return r1, g1, b1, a1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement