Thread Tools Display Modes
Prev Previous Post   Next Post Next
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,356
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