Okay, awesome, thank you! I will be saving that code as well.
As for my cast bar question, here is the situation. It's kind of hard to explain without seeing it, so I've taken some pictures to help.
The only line I've edited in the code is to change the casting bar color. I changed it from
Code:
self.Castbar:SetStatusBarColor(r, g, b)
to
Code:
self.Castbar:SetStatusBarColor(0.67, 0.83, 0.45)
.
For the most part, it works in game. The only problems I have is when I am mid-cast, and target someone else who is mid-cast. Their cast bar will be green, but mine will turn white.
Here are pictures:
Casting without a target:
Casting while targeting someone else who is also casting:
After the initial cast, say if I am spamming a target while they are spamming something else, both bars revert to green. It's quite peculiar.
I hope I've made myself clear; please let me know if I didn't.