from retail

This commit is contained in:
NoM0Re
2025-01-05 15:08:50 +01:00
parent 95db2e326e
commit 8375cfa0a7
115 changed files with 332 additions and 261 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L
@@ -843,7 +843,7 @@ function Private.RegisterForGlobalConditions(uid)
end
if (next(register) and not dynamicConditionsFrame) then
dynamicConditionsFrame = CreateFrame("FRAME");
dynamicConditionsFrame = CreateFrame("Frame");
dynamicConditionsFrame:SetScript("OnEvent", handleDynamicConditions);
dynamicConditionsFrame.units = {}
WeakAuras.frames["Rerun Conditions Frame"] = dynamicConditionsFrame
@@ -860,7 +860,7 @@ function Private.RegisterForGlobalConditions(uid)
if unitEvent and unit then
unit = unit:lower()
if not dynamicConditionsFrame.units[unit] then
dynamicConditionsFrame.units[unit] = CreateFrame("FRAME");
dynamicConditionsFrame.units[unit] = CreateFrame("Frame");
dynamicConditionsFrame.units[unit]:SetScript("OnEvent", handleDynamicConditionsPerUnit);
end
dynamicConditionsFrame.units[unit].unit = unit;
@@ -909,7 +909,7 @@ function Private.UnloadAllConditions()
dynamicConditions = {}
if dynamicConditionsFrame then
dynamicConditionsFrame:UnregisterAllEvents()
for unit, frame in pairs(dynamicConditionsFrame.units) do
for _, frame in pairs(dynamicConditionsFrame.units) do
frame:UnregisterAllEvents()
end
dynamicConditionsFrame:SetScript("OnUpdate", nil)