From 3d7d0f60495921ac5482a86f0cab459bba699073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 1 Nov 2022 10:36:17 +0100 Subject: [PATCH] Tweaked race icons --- REFlexFunctions.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/REFlexFunctions.lua b/REFlexFunctions.lua index 6273dd1..d2a6f98 100644 --- a/REFlexFunctions.lua +++ b/REFlexFunctions.lua @@ -488,11 +488,12 @@ function RE:GetClassIcon(token, size) end function RE:GetRaceIcon(token, size) - if BR[token] == nil then + if RE.RaceIcons[token] ~= nil then + return "|A:"..RE.RaceIcons[token]..":"..size..":"..size.."|a" + elseif BR[token] == nil then return "|TInterface\\Icons\\INV_Misc_QuestionMark:"..size..":"..size.."|t" else - token = sgsub(BR[token], "_PL", "") - return "|A:"..RE.RaceIcons[token]..":"..size..":"..size.."|a" + return "|A:"..RE.RaceIcons[sgsub(BR[token], "_PL", "")]..":"..size..":"..size.."|a" end end