From fc8c9a800e0b802b937ee93958b3622acedf5b4d Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Sat, 20 Jul 2024 11:28:24 -0500 Subject: [PATCH] Fix DodgePerAgi fallback --- libs/StatLogic/Global_Logic.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/StatLogic/Global_Logic.lua b/libs/StatLogic/Global_Logic.lua index b0237ed..0a89969 100644 --- a/libs/StatLogic/Global_Logic.lua +++ b/libs/StatLogic/Global_Logic.lua @@ -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