First of all, thanks for all your work with ag_unitframes. It's a great modification and i love using it.
Before the release of patch 2.4 aguf had a bug which only showed the buffs I applied on another person. I'm a druid and for example I couldn't see a mark of the wild buffed by another druid. Only if I buffed the person myself I could see the buff in the raidframe. I felt this was quite nice and handy. With the release of patch 2.4 this bug has been fixed and aguf now shows again also the buffs another person of the same class has applied. Could you please tell me which lines in the .lua files I have to alter in order to only show the buffs I have casted? I'm thinking of some sort of:
To sum it up:
All i want to add to ag_unitframes is a simple option to filter buffs/auras by players. This means: I only want to see a Rejuvenation or Regrowth in my raidframes if I casted it to the player, but I don't want to see it, when another druid casted it.
I believe I have to modify the ag_UnitClass.lua, but unfortunately I'm not familiar with the lua scripting language and the blizzard built-in functions of wow. All I need is a simple if-condition which checks if the buff was applied by me or not. If it was applied, then the buff should be displayed in the raidframes, if not it should be hided.
I hope someone of you experts can help :)
When you call UnitBuff (http://www.wowwiki.com/API_UnitBuff), duration and timeleft will tell you if the buff was cast by you. I think that's all you need to add as a condition to the aura code for agUF.
You need to do something similar to what is done for debuffs just below the code you pasted. Debuffs are treated similar to what you want for buffs, except that instead of checking for duration it checks for the special case of Weakened Soul. Something like this should work I hope:
while (name) do
-- record buffs
if (duration) then
c = aUF.cache.buffs[id]
c.id, c.name, c.texture, c.count, c.duration, c.timeLeft = buffid, name, texture, count, duration, timeLeft
id = id + 1
buffid = buffid + 1
name, rank, texture, count, duration, timeLeft = UnitBuff(unit, buffid, filter)
There's one little question remaining - if you have time it would be really cool if you read through the posting :)
In the aguf-version before the 2.4-patch only own buffs have been displayed in the raidframes. However, if I targeted/focused another player I could see all his buffs next to his avatar, hp- and mana-bars on top of my screen. Do you think it's possible to change that, too?
Raidframes: Only own buffs
Player's Target: All buffs
If that's possible, it would be really awesome :)
EDIT: Perhaps such a feature could be included in some future releases. I think xPerl supports such a feature, but I don't want to change my interface because I love aguf :)