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