View Single Post
02-13-22, 07:56 PM   #2
Zaqqari
A Deviate Faerie Dragon
Join Date: Aug 2019
Posts: 11
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:
  1. hooksecurefunc(NameplateBuffContainerMixin,"UpdateAnchor",function(self)
  2.     local parent=self:GetParent();
  3.     local unit=parent.unit;
  4.  
  5.     if unit and not ShouldShowName(parent) and not UnitIsUnit(self.unit, "player") then
  6.         local offset=self:GetBaseYOffset()+((unit and UnitIsUnit(unit,"target")) and self:GetTargetYOffset() or 0);
  7.         self:SetPoint("BOTTOM",parent,"TOP",0,-18);
  8.     end
  9. end);
  Reply With Quote