I tried adding this under within the above posted code.
Got a nil value error for it. What did I do wrong?
Code:
if self.Castbar:PostCastNotInterruptible(unit) then
self.Castbar.Text:SetTextColor(1,0,0)
self.Castbar.Time:SetTextColor(1,0,0)
else
self.Castbar.Text:SetTextColor(1,1,1)
self.Castbar.Time:SetTextColor(1,1,1)
end