WoWInterface - View Single Post - filter auras by duration
View Single Post
04-11-13, 09:03 PM   #3
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Well, since the argument passed right after the duration is the time the aura expires, getting the time remaining is trivial:

element.CustomFilter = function(self, unit, iconFrame, name, rank, icon, count, debuffType, duration, expirationTime, caster, isStealable, shouldConsolidate, spellID, canApplyAura, isBossDebuff, isCastByPlayer, value1, value2, value3)
	local timeLeft = expirationTime - GetTime()
	return timeLeft < 60
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote