from retail
This commit is contained in:
+12
-1
@@ -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\""
|
||||
|
||||
Reference in New Issue
Block a user