from retail

This commit is contained in:
Bunny67
2020-07-26 14:30:59 +03:00
parent 0e3999b8fd
commit ad5e1ed4d1
8 changed files with 121 additions and 71 deletions
+12 -4
View File
@@ -525,10 +525,18 @@ function WeakAuras.regionPrototype.modify(parent, region, data)
end
if not parent or parent.regionType ~= "dynamicgroup" then
if not (
data.anchorFrameType == "CUSTOM"
or data.anchorFrameType == "UNITFRAME"
) then
if
-- Don't anchor single Auras that with custom anchoring,
-- these will be anchored in expand
not (
data.anchorFrameType == "CUSTOM"
or data.anchorFrameType == "UNITFRAME"
)
-- Group Auras that will never be expanded, so those need
-- to be always anchored here
or data.regionType == "dynamicgroup"
or data.regionType == "group"
then
WeakAuras.AnchorFrame(data, region, parent);
end
end