hiding own buffs if targeting yourself
okay, i dont know if this is possible, to what i think, if i just if unit=="player" while targeting myself, it would deleted that "targets" buffs. but its only hiding my actual buffs. i know its not necessary to do this, but i really want to make it this way.
so how do i go along if i target myself, it wont show my buffs. Quote:
|
Auras shows (by default) both buffs and debuffs in it's container while Buffs and Debuffs show their.. err.. respective auras.
If you're planning on keeping them separated then I suggest you use Buffs and Debuffs and not Auras Open up oUF/elements/aura.lua and you'll see the options you can use. I don't know if the indenting was lost when you posted but it's a lot easier to read the code with it. When you're targeting yourself the unit of the frame is still target. What you need to do is hook a function (again, look at aura.lua) or insert an element on the target unitframe that will hide the buffs whenever UnitGUID("target") == UnitGUID("player") or something similar. |
All times are GMT -6. The time now is 03:31 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI