Quantcast

Fixed hide in combat not working

Darthpred [09-04-16 - 05:34]
Fixed hide in combat not working
Filename
ElvUI_SLE/modules/databars/artifact.lua
diff --git a/ElvUI_SLE/modules/databars/artifact.lua b/ElvUI_SLE/modules/databars/artifact.lua
index 289b029..7776023 100644
--- a/ElvUI_SLE/modules/databars/artifact.lua
+++ b/ElvUI_SLE/modules/databars/artifact.lua
@@ -19,7 +19,7 @@ local function UpdateArtifact(self, event)
 	if not E.db.sle.databars.artifact.longtext then return end
 	local bar = self.artifactBar
 	local showArtifact = HasArtifactEquipped();
-	if not showArtifact then
+	if not showArtifact or (event == "PLAYER_REGEN_DISABLED" and self.db.artifact.hideInCombat) then
 		bar:Hide()
 	else
 		bar:Show()