View Single Post
12-14-10, 01:17 PM   #1
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
Cooldown bar bug-fix

I noticed that the Survey (Archaeology) skill was showing up on the HUD c/d bar for all of my toons...except one, the Warlock. HUD alerts when it went off c/d were also working for everybody but the Warlock.

I double-checked the command-line settings, and everything seemed to be OK. The other couple skills with c/d's that he regularly uses seemed to be working fine as well.

To cut to the chase, because of the addition of "fly-out" items for certain classes 4.0.1 (Warlocks being one, Hunters and Mages being the other two I can think of), the logic which scans the spellbook and fills the list used by the c/d bar exits pre-maturely - any spells (of which Survey is one example) that come after a fly-out will not be scanned and won't behave properly in the c/d bar.

The attached file (which goes in nUI/Bars) has a fairly straightforward fix to the spellbook scanning logic and seems to work as intended.
Attached Files
File Type: lua nUI_CooldownBar.lua (32.1 KB, 643 views)