Skip to content

Commit

Permalink
Call WeakAuras.PreAdd on all auras before adding them
Browse files Browse the repository at this point in the history
This ensures that all auras have modernized data.
  • Loading branch information
InfusOnWoW committed Jan 22, 2024
1 parent f6c8f76 commit acb3b58
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions WeakAuras/WeakAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2538,11 +2538,16 @@ function Private.AddMany(tbl, takeSnapshots)
coroutine.yield()
local groups = {}
for _, data in ipairs(order) do
WeakAuras.Add(data, takeSnapshots);
coroutine.yield()
WeakAuras.PreAdd(data)
if data.regionType == "dynamicgroup" or data.regionType == "group" then
groups[data] = true
end
coroutine.yield()
end

for _, data in ipairs(order) do
WeakAuras.Add(data, takeSnapshots);
coroutine.yield()
end

for id in pairs(anchorTargets) do
Expand Down

0 comments on commit acb3b58

Please sign in to comment.