I'm trying to extend a mod called cctimer. It basically watches your focus target for debuffs and displays them to you in a window. I'm trying to make it work with rogue crowd control. It's working fine with blind and gouge, but I can't get sap to work. Here's the code in question:
function CCTimer:OnUnitAura( unitId )
if ( unitId ~= "focus" ) then return; end
for i = 1, 40 do
local debuffName,_,_,_,_,_,debuffTime = UnitDebuff( "focus", i );
end
end
This function is registered for OnUnitAura events.
If I print the debuffName variable, it's clear this function is getting called for a wide variety of debuffs - gouge, blind, stuns, poisons, etc. But it doesn't seem to be getting called for sap.
Is sap different in some way? Is there another event I can register to catch it?
Thanks for any help!