woops 2
Darth Predator [03-28-17 - 13:18]
diff --git a/ElvUI_SLE/modules/databars/artifact.lua b/ElvUI_SLE/modules/databars/artifact.lua
index 84e4dcd..6c3e5e7 100644
--- a/ElvUI_SLE/modules/databars/artifact.lua
+++ b/ElvUI_SLE/modules/databars/artifact.lua
@@ -25,7 +25,12 @@ local function UpdateArtifact(self, event)
local text = ''
local totalXP, pointsSpent = T.select(5, C_ArtifactUIGetEquippedArtifactInfo());
local tier = T.select(13, C_ArtifactUIGetEquippedArtifactInfo());
- local numPointsAvailableToSpend, xp, xpForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(pointsSpent, totalXP, tier);
+ local numPointsAvailableToSpend, xp, xpForNextPoint
+ if E.wowbuild >= 23623 then --7.2
+ numPointsAvailableToSpend, xp, xpForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(pointsSpent, totalXP, tier);
+ else
+ numPointsAvailableToSpend, xp, xpForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(pointsSpent, totalXP);
+ end
local textFormat = self.db.artifact.textFormat
if textFormat == 'PERCENT' then