I would like to find out how to make a lua code to detect my buffs on a player and show its duration so that I can put that info in the raid frame for each player unit similar to how Grid2 does it.

Is there a way? I found out about UnitAura(unit), but I have no idea how to write the lua code.

I am focused on Pitbull4 as a backup because my SUF profile is bugging out in the 9.0 and I am trying to give it 100% of looks and fuction from my SUF profile. (Even though I am hopeful they will update for 9.0).

I thought about creating 5 lua texts as Lua:HoT1-5 and put them in different anchors for each specific buff, if there is a way to make it work for all classes without having to create a text per class and per buff it would be awesome.

Sorry about the english, I am not a native english speaker.

Any help will be highly appreciated.

Thanks,
Soultrigger