public
Description: WoW Addon - Crowd control assistance
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/controlfreak.git
Click here to lend your support to: controlfreak and make a donation at www.pledgie.com !
Fix nil error on Live
tekkub (author)
Sun Aug 24 21:36:46 -0700 2008
commit  9c91fb520549ec912868be0ca5c50ebf347bed3f
tree    f700073fdcb58f1e345d83f274f0e8354c082663
parent  1d956932b9bbbb14cadc7f4327ae346fce788e71
...
259
260
261
262
 
 
263
264
265
...
259
260
261
 
262
263
264
265
266
0
@@ -259,7 +259,8 @@ function ControlFreak:OnUpdate(elapsed)
0
     else
0
       for debuff in pairs(mydebuffs) do if IsSpellInRange(debuff, unit) == 0 then range = "*" end end
0
       if controlled[unit] then
0
- timeLeft = select(7, UnitDebuff(unit, controlled[unit])) - (IS_WRATH_BUILD and GetTime() or 0)
0
+ timeLeft = select(7, UnitDebuff(unit, controlled[unit]))
0
+ if timeLeft and IS_WRATH_BUILD then timeLeft = timeLeft - GetTime() end
0
         color, note = "cyan", timeLeft and string.format("Controlled (%ds)", timeLeft) or "Controlled"
0
         if timeLeft and timeLeft <= self.db.char.breakthreshold then alpha = 1.0 end
0
       elseif lasthptime and lasthptime >= (GetTime()-damageinterval) then alpha, color, note = 1.0, "red", "Damage"

Comments

    No one has commented yet.