Nameplate Debuff Whitelist
I want to hide all buffs/debuffs on nameplates (including the personal resource display) and then whitelist the ones I want to show. I also want an option for showing debuffs casted only by the player or by anyone.
After doing some research, this is all I could come up with: Code:
local whitelist = { Non-whitelisted buffs appear on nameplates. The world buffs in battlegrounds always show up on my personal resource display, and random debuffs from friendly players will pop up from time to time. There also seems to be no way to distinguish between spells of the same name but different spell IDs. For example, I want to show the Disable root but not the slow unless I'm the one who casted it. Any help is appreciated! I don't have much experience in this, so this is my last resort. |
I had the same idea at some point in Legion and tried what you are trying to do aswell. Turns out there isn't really a clean and simple solution to it. If you want to read a bit more check this thread
The blacklist idea from my last post in the linked post, resulted in big performance issues. After this i gave up on this idea. If you really want this feature, my advice is to stick to an established nameplate addon. There are plenty of them out there. My personal recomendation in this case would be Plater Nameplates. |
Quote:
|
Well you "could" use oUF and create your own nameplates. Since nameplates are just regular unitframes you can use the oUF customfilter on your nameplate auras. That is what I am doing.
https://github.com/zorker/rothui/blo...eplate.lua#L49 |
Quote:
|
A bit of a necro but the issue with the code letting non-whitelisted debuffs through seems to be that there's a lot of debuffs going around that don't have a caster tied to them. Seems to be world buffs e.g. in BGs, some azerite traits, and debuffs by people whose nameplates you are not in the range of. This makes
Code:
local function newShouldShowBuff(_,name,caster) Code:
local function newShouldShowBuff(_,name,caster) |
Quote:
EDIT: I've run into a problem with this. I want to track the Monk class's Disable root but not the slow. Both of the debuffs have the same name, so is there a way for me to see the root on all my characters and both on my Monks? |
I'm using his fix for a longer period of time now and it works totally fine for me.
As for your problem with the "Disable"-spell, all i can think of right now is that you could try to change the whitelist to spellIds instead of spellNames. |
Quote:
|
I fiddled around with it but i can't get it to work as my Lua knowledge isn't the best either.
|
Quote:
EDIT: I've noticed that the issue also occurs with the Rake stun/bleed. They have the same name but different ID's. This is quickly becoming a problem because I really want to track all loss of control effects and not see random bleeds on players in PvP. If there's any way to whitelist additional spells by ID, I would like to know how. |
Ok I got a working version that uses spellIds instead of spellNames. It works for debuffs and buffs BUT still shows both debuffs if they have an identical name (tested with druids Rake ability).
Also I am kinda convinced now, that your desired behaviour is actually not possible to achieve because the Blizzard function is only looking for spellNames and even if you filter two spells with the same name for their respective spellIds you would still have to handover the spellName in the end which is identical again (at least for my understanding of how the code operates). Lua Code:
|
Quote:
Here's the link if you want to check it out: https://us.forums.blizzard.com/en/wo...elist/69575/22 EDIT: It looks like we may have done it, but I wasn't able to test whether or not random auras from other players would show up. I'll post the script here, and you are free to test it. Code:
local whitelist = { |
All times are GMT -6. The time now is 05:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI