View Single Post
07-27-16, 02:29 PM   #2
sticklord
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 57
Hey, I haven't tested this or anything but its just a gut feeling. Swap the bottom part with this:

Lua Code:
  1. CastingBarFrame:HookScript('OnUpdate', function(self, elapsed)
  2.     if not self.timer then return end
  3.     if self.update and self.update < elapsed then
  4.         if self.casting then
  5.             self.timer:SetText(format("%.1f", max(self.maxValue - self.value, 0)))
  6.         elseif self.channeling then
  7.             self.timer:SetText(format("%.1f", max(self.value, 0)))
  8.         else
  9.             self.timer:SetText("")
  10.         end
  11.         self.update = 0.1
  12.     else
  13.         self.update = self.update - elapsed
  14.     end
  15. end)
  Reply With Quote