Quantcast

Probably fix artifacts again

Darth Predator [11-09-16 - 17:34]
Probably fix artifacts again
Filename
ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
diff --git a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
index ee7a988..7706d58 100644
--- a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
+++ b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
@@ -1361,10 +1361,12 @@ do --<< Artifact Monitor >>
 				self:LegionArtifactMonitor_ClearPowerItemSearching()
 			end

-			if TotalPower + Legion_ArtifactData.XP > Legion_ArtifactData.XPForNextPoint then
-				TotalPower = Legion_ArtifactData.XPForNextPoint
-			else
-				TotalPower = TotalPower + Legion_ArtifactData.XP
+			if Legion_ArtifactData.XP then
+				if TotalPower + Legion_ArtifactData.XP > Legion_ArtifactData.XPForNextPoint then
+					TotalPower = Legion_ArtifactData.XPForNextPoint
+				else
+					TotalPower = TotalPower + Legion_ArtifactData.XP
+				end
 			end

 			self.ArtifactMonitor.BarExpected:SetValue(TotalPower)