Thread Tools Display Modes
04-13-08, 06:11 AM   #1
calvid
A Defias Bandit
Join Date: Apr 2008
Posts: 2
Sap and OnUnitAura

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!
  Reply With Quote
04-14-08, 06:55 AM   #2
calvid
A Defias Bandit
Join Date: Apr 2008
Posts: 2
Sorry, there's an error in my original post. I meant to say that the OnUnitAura function is registered for the UNIT_AURA event.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Sap and OnUnitAura


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off