from retail

This commit is contained in:
NoM0Re
2025-02-25 21:47:56 +01:00
parent 2157fbc553
commit c48ce524f8
6 changed files with 68 additions and 23 deletions
+8 -3
View File
@@ -1,6 +1,6 @@
local AddonName, Private = ...
local internalVersion = 82
local internalVersion = 83
-- Lua APIs
local insert = table.insert
@@ -2935,8 +2935,9 @@ function Private.SetRegion(data, cloneId)
local parent = WeakAurasFrame;
if(data.parent) then
if WeakAuras.GetData(data.parent) then
parent = Private.EnsureRegion(data.parent)
local parentRegion = WeakAuras.GetRegion(data.parent)
if parentRegion then
parent = parentRegion
else
data.parent = nil;
end
@@ -2998,6 +2999,10 @@ local function EnsureRegion(id)
local data = WeakAuras.GetData(id)
tinsert(aurasToCreate, data.id)
id = data.parent
if WeakAuras.GetRegion(id) then
break
end
end
for _, toCreateId in ipairs_reverse(aurasToCreate) do