Skip to content

Commit

Permalink
Fix DodgePerAgi fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jul 20, 2024
1 parent 54e069e commit fc8c9a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/StatLogic/Global_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ local addonName, addon = ...
local StatLogic = LibStub(addonName)

local function conversionFallback(classTable, conversionFunc)
local t = getmetatable(classTable) or classTable
return setmetatable(t, { __index = function(_, level)
return level == UnitLevel("player") and conversionFunc(StatLogic) or 0
return setmetatable({}, { __index = function(_, level)
return classTable[level] or level == UnitLevel("player") and conversionFunc(StatLogic) or 0
end })
end

Expand Down

0 comments on commit fc8c9a8

Please sign in to comment.