/trunk
--Remove ALL timers from the specified unit |
function StunWatch:KillAllTimers(unitGUID) |
--match found, iterate through the table removing all candybars associated with the unit |
--terate through the table removing all candybars associated with the unit |
for k, v in pairs(unitDB[unitGUID]) do |
candy:UnregisterCandyBar(v) |
unitDB[unitGUID][k] = nil |
do |
--Check for sap, this way, we can delete any other sap timers if we happen to be out of range for SPELL_AURA_REMOVED |
local function sap(id) |
if (spellName == StunWatch.db.profile.sdbn[6770]) then |
if (spellName == sdb[6770]) then |
if (sapID) then |
if candy:IsCandyBarRegistered(sapID) then |
candy:UnregisterCandyBar(sapID) |