From e5fd6564252cc551ef65ac9abbf9f7d2c39d99b7 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 26 Apr 2020 13:25:54 +0200 Subject: [PATCH] thirdparty: calculate wim color string --- modules/thirdparty-vanilla.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua index a176a095..e6e5bf03 100644 --- a/modules/thirdparty-vanilla.lua +++ b/modules/thirdparty-vanilla.lua @@ -457,8 +457,8 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function() hooksecurefunc("WIM_InitClassProps", function() for class in pairs(RAID_CLASS_COLORS) do local wimclass = _G[format("WIM_LOCALIZED_%s",class)] - local colorstr = gsub(RAID_CLASS_COLORS[class].colorStr, "^ff", "") - _G.WIM_ClassColors[wimclass] = colorstr + local colorstr = rgbhex(RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b, RAID_CLASS_COLORS[class].a) + _G.WIM_ClassColors[wimclass] = gsub(colorstr, "^ff", "") end end, true)