Quantcast

role icons fix

Darthpred [08-23-15 - 03:39]
role icons fix
Filename
ElvUI_SLE/modules/unitframes.lua
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