View Single Post
08-04-14, 12:18 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Lua Code:
  1. local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable,
  2. shouldConsolidate, spellId, canApplyAura, isBossDebuff, value1, value2, value3 = UnitBuff("unit", index or "name"[, "rank"[, "filter"]])
You check on the 15th argument. The time left is the expirationTime value.

Take a look at the 2nd example
http://wowpedia.org/API_UnitBuff
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote