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
+12 -1
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
@@ -1160,6 +1160,17 @@ function Private.Modernize(data)
end
end
if (data.internalVersion < 51) then
for _, triggerData in ipairs(data.triggers) do
if triggerData.trigger.event == "Threat Situation" then
triggerData.trigger.unit = triggerData.trigger.threatUnit
triggerData.trigger.use_unit = triggerData.trigger.use_threatUnit
triggerData.trigger.threatUnit = nil
triggerData.trigger.use_threatUnit = nil
end
end
end
if (data.internalVersion < 52) then
local function matchTarget(input)
return input == "target" or input == "'target'" or input == "\"target\"" or input == "%t" or input == "'%t'" or input == "\"%t\""