aura

Returns the time left on an aura (buff / debuff). Use debuff() / buff() instead of direct access to aura

aura(unit, spellID, filter) : integer
  1. SpellID from the class spellbooks.

  2. See Wowpedia for more information on WoW Unit IDs.

  3. Use of object is also supported for unit.

  4. filter ('HELPFUL' / 'HARMFUL').

Example

 
if aura('player', BlazingBarrier, 'HELPFUL') then
return cast(BlazingBarrier, 'player')
end

Note

As stated above, use buff / debuff instead.