From e8c676da348f9d2c1cb542092fa95677a2b4d486 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 23 Aug 2015 07:39:06 +0400 Subject: [PATCH] role icons fix --- ElvUI_SLE/modules/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/unitframes.lua b/ElvUI_SLE/modules/unitframes.lua index 90d040d..3f2bc87 100644 --- a/ElvUI_SLE/modules/unitframes.lua +++ b/ElvUI_SLE/modules/unitframes.lua @@ -356,7 +356,7 @@ function UF:UpdateRoleIcon() role = rnd == 1 and "TANK" or (rnd == 2 and "HEALER" or (rnd == 3 and "DAMAGER")) end end - if role ~= 'NONE' and (self.isForced or UnitIsConnected(self.unit)) then + if (self.isForced or UnitIsConnected(self.unit)) and ((role == "DAMAGER" and db.damager) or (role == "HEALER" and db.healer) or (role == "TANK" and db.tank)) then lfdrole:SetTexture(SLE.rolePaths[E.db.sle.roleicons][role]) lfdrole:Show() else -- 1.7.9.5