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 for changes to UnitDebuff in Wrath
tekkub (author)
Sat Aug 23 20:42:43 -0700 2008
commit  1d956932b9bbbb14cadc7f4327ae346fce788e71
tree    6f3502f5ff3248ecc496cd14c7df512e0a1849ce
parent  90d67772f13162ccf2b896f7435174843fa14d8e
...
1
 
 
2
3
4
...
257
258
259
260
 
261
262
263
...
1
2
3
4
5
6
...
259
260
261
 
262
263
264
265
0
@@ -1,4 +1,6 @@
0
 
0
+if IS_WRATH_BUILD == nil then IS_WRATH_BUILD = (select(4, GetBuildInfo()) >= 30000) end
0
+
0
 string.concat = strconcat
0
 
0
 
0
@@ -257,7 +259,7 @@ 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]))
0
+ timeLeft = select(7, UnitDebuff(unit, controlled[unit])) - (IS_WRATH_BUILD and GetTime() or 0)
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.