Thread Tools Display Modes
04-10-23, 12:01 PM   #1
rakkarage
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 19
using default nameplate debuff filter

https://www.wowinterface.com/forums/...ad.php?t=58558

the code in the last post here allows you to change what debuffs show on nameplates with the ShouldShowBuff function but there is no way to tell if the debuff is yours or not? even though there is another parameter it is always false?

i have tried nameplateAuras and plater but just wanna get it working with normal nameplates if possible

please and thanks
  Reply With Quote
04-12-23, 05:06 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I think caster is the UnitID. You should be able to check this against player, pet, and/or vehicle. The args can change over the years though.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
04-27-23, 05:27 PM   #3
rakkarage
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 19
Originally Posted by SDPhantom View Post
I think caster is the UnitID. You should be able to check this against player, pet, and/or vehicle. The args can change over the years though.
Thanks.
The caster parameter seems to be always false bool from print?
Name is a table and I need to use name["name"] to get the name from it?
I can use self.unit but it is the target not the source... the targetdummy nameplate

https://www.wowinterface.com/forums/...d.php?p=340221

i wish someone would make an addon that manages the default blizzard aura frames
  Reply With Quote
04-28-23, 12:34 AM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I'm guessing this is for retail as the function replaced doesn't exist in classic. That being said, this is the original function. It appears to have been changed for Dragon Flight.

Lua Code:
  1. function NameplateBuffContainerMixin:ShouldShowBuff(aura, forceAll)
  2.     if (not aura or not aura.name) then
  3.         return false;
  4.     end
  5.     return aura.nameplateShowAll or forceAll or
  6.            (aura.nameplateShowPersonal and (aura.sourceUnit == "player" or aura.sourceUnit == "pet" or aura.sourceUnit == "vehicle"));
  7. end
AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:662

aura seems to be a table returned by C_UnitAuras.GetAuraDataByAuraInstanceID() / C_UnitAuras.GetAuraDataBySlot().
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Wish List » using default nameplate debuff filter


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off