View Single Post
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,327
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