function(progress, r1, g1, b1, a1, r2, g2, b2, a2) local start, duration, enable = GetSpellCooldown("Mind Blast") local warning_time = 3 local progress = start + duration - GetTime() if start>0 then if progress < warning_time then return r2, g2, b2, a2 end end return r1,g1,b1, a1end