I'm curious about this as well. I have been using the script you posted here to move the nameplate auras, and I have issues in dungeon and raid instances. Friendly nameplates are not allowed to be modified in those instances, so I get too many addon errors when I do them.
Is there any way to modify the script to never touch friendly nameplates while in those protected instances? The first line is creating errors every time it tries to run.
Lua Code:
hooksecurefunc(NameplateBuffContainerMixin,"UpdateAnchor",function(self)
local parent=self:GetParent();
local unit=parent.unit;
if unit and not ShouldShowName(parent) and not UnitIsUnit(self.unit, "player") then
local offset=self:GetBaseYOffset()+((unit and UnitIsUnit(unit,"target")) and self:GetTargetYOffset() or 0);
self:SetPoint("BOTTOM",parent,"TOP",0,-18);
end
end);