Track Missing Buffs
I am looking for a code snippet to use and learn from how to track missing personal Buffs. In Cataclysm every time I die I lose Righteous Fury and sometimes I forget to rebuff it which doesn't help when tanking :)
|
You can use UnitAura(unit, spell)
unit would then be "player" and spell "Righteous Fury" If the function returns nil, you can display some frame to notice yourself Documentation here: http://www.wowwiki.com/API_UnitAura |
Code:
local f = CreateFrame("Frame",nil,UIParent) |
Thanks that code really helped could change / extend it to my needs :)
|
All times are GMT -6. The time now is 03:37 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI