WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Wish List (https://www.wowinterface.com/forums/forumdisplay.php?f=15)
-   -   using default nameplate debuff filter (https://www.wowinterface.com/forums/showthread.php?t=59552)

rakkarage 04-10-23 12:01 PM

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

SDPhantom 04-12-23 05:06 PM

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.

rakkarage 04-27-23 05:27 PM

Quote:

Originally Posted by SDPhantom (Post 342328)
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

SDPhantom 04-28-23 12:34 AM

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().


All times are GMT -6. The time now is 09:36 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI