View Single Post
06-17-09, 03:47 PM   #17
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Okay think I spotted something Scott, whether its the right area is another matter

I added some debug code in nuiButton.lua to test the tests being made and I spotted a flaw as you will see from the screen shot.

In the spell book there is no Rank associated with the Judgements. But the debuff automatically notes it as Rank 1. Therein they do not match. However, on the players auras themselves Divine Protection, Righteous Fury and Seal of Righteousness are similarly non ranked but work fine.


Code:
if not overlay.spellStatus.remains then
   aura_info = unit_info.aura_info and unit_info.aura_info.debuff_list or nil;
   if aura_info then 
       for i=1,#aura_info do
           aura = aura_info[i];
           -- Debug Code
           if ( aura.name == overlay.spellStatus.name ) then
               print("Aura Name : " .. aura.name);
               print("End Time : " .. aura.end_time);
               print("Proc Time : " .. proc_time);
               print("Caster : " .. aura.caster);
               print("Rank : " .. aura.rank);
               print("Overlay Rank : " .. overlay.spellStatus.rank);
          end
          -- Debug Code
          if  aura.end_time
          and aura.end_time > proc_time
          and aura.name == overlay.spellStatus.name
          and aura.rank == overlay.spellStatus.rank		
          and aura.caster == "player"
          then 
               overlay.spellStatus.remains = aura.end_time - proc_time;
               overlay.spellStatus.color   = overlay.is_cdc and { r=0.75, g=0.05, b=1 } or { r=0, g=1, b=1 };
               break;
          end
      end
   end
end
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_061709_224228.jpg
Views:	603
Size:	413.9 KB
ID:	2919  
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 06-17-09 at 04:00 PM.