Skip to content

Commit

Permalink
Modernize: Don't depend on load_prototypes for modernize code
Browse files Browse the repository at this point in the history
  • Loading branch information
InfusOnWoW committed Aug 27, 2023
1 parent eff9afa commit 462f994
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions WeakAuras/Modernize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1942,17 +1942,17 @@ function Private.Modernize(data)
end
end
do
-- TODO also here don't use load_prototype
for _, field in ipairs(Private.load_prototype.args) do
if field.multiEntry then
migrateToTable(data.load, field.name)
if field.type == "number" then
migrateToTable(data.load, field.name.."_operator")
end
end
local loadFields = {
"level", "effectiveLevel"
}

for _, field in ipairs(loadFields) do
migrateToTable(data.load, field)
migrateToTable(data.load, field .. "_operator")
end
end
end

data.internalVersion = max(data.internalVersion or 0, WeakAuras.InternalVersion())
end

0 comments on commit 462f994

Please sign in to comment.