Quantcast

Removed compatibility, fixed afk, bumped toc

Darth Predator [03-28-17 - 22:54]
Removed compatibility, fixed afk, bumped toc
Filename
CHANGELOG.txt
ElvUI_SLE/ElvUI_SLE.toc
ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
ElvUI_SLE/modules/afk.lua
ElvUI_SLE/modules/databars/artifact.lua
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index fb4f3e7..c3fcc6c 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,7 @@
+v3.20 03/29/17
+Fixes:
+- Fixed afk screen related error on load
+
 v3.19 03/28/17
 Patch 7.2 compatible. Requires ElvUI 10.46 to run.
 Additions:
diff --git a/ElvUI_SLE/ElvUI_SLE.toc b/ElvUI_SLE/ElvUI_SLE.toc
index 0598cd5..12446b3 100644
--- a/ElvUI_SLE/ElvUI_SLE.toc
+++ b/ElvUI_SLE/ElvUI_SLE.toc
@@ -1,7 +1,7 @@
 ## Interface: 70200
 ## Title: |cff1784d1ElvUI|r |cff9482c9Shadow & Light|r
 ## Author: Darth Predator, Repooc
-## Version: 3.19
+## Version: 3.20
 ## Notes: Plugin-edit for |cff1784d1ElvUI|r implementing additional features.
 ## Notes-ruRU: Плагин-редакция для |cff1784d1ElvUI|r, добавляющий новые функции.
 ## URL: http://tukui.org/
diff --git a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
index 3528530..1cc03ff 100644
--- a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
+++ b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
@@ -1231,11 +1231,7 @@ do --<< Artifact Monitor >>
 			Legion_ArtifactData.ItemID = Artifact_ItemID
 			Legion_ArtifactData.Rank = Artifact_Rank
 			Legion_ArtifactData.Tier = Artifact_Tier
-			if E.wowbuild >= 23623 then --7.2
-				Legion_ArtifactData.AvailablePoint, Legion_ArtifactData.XP, Legion_ArtifactData.XPForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(Artifact_Rank, Artifact_Power, Artifact_Tier)
-			else
-				Legion_ArtifactData.AvailablePoint, Legion_ArtifactData.XP, Legion_ArtifactData.XPForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(Artifact_Rank, Artifact_Power)
-			end
+			Legion_ArtifactData.AvailablePoint, Legion_ArtifactData.XP, Legion_ArtifactData.XPForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(Artifact_Rank, Artifact_Power, Artifact_Tier)
 			-- Legion_ArtifactData.RemainXP = Legion_ArtifactData.XPForNextPoint - Legion_ArtifactData.XP --We don't actually use it
 			if E.db.sle.Armory.Character.Artifact.ShortValues then
 				Legion_ArtifactData.Power = E:ShortValue(Legion_ArtifactData.XP)
diff --git a/ElvUI_SLE/modules/afk.lua b/ElvUI_SLE/modules/afk.lua
index d87c526..58c8ac6 100644
--- a/ElvUI_SLE/modules/afk.lua
+++ b/ElvUI_SLE/modules/afk.lua
@@ -481,7 +481,7 @@ function S:Initialize()

 	SS:HookScript("OnShow", S.Show)
 	SS:HookScript("OnHide", S.Hide)
-	SS.Model:SetScript("OnUpdateModel", nil)
+	SS.Model:SetScript("OnUpdate", nil)

 	AFK:OnEvent()
 end
diff --git a/ElvUI_SLE/modules/databars/artifact.lua b/ElvUI_SLE/modules/databars/artifact.lua
index 6c3e5e7..2cc35d7 100644
--- a/ElvUI_SLE/modules/databars/artifact.lua
+++ b/ElvUI_SLE/modules/databars/artifact.lua
@@ -26,11 +26,7 @@ local function UpdateArtifact(self, event)
 		local totalXP, pointsSpent = T.select(5, C_ArtifactUIGetEquippedArtifactInfo());
 		local tier = T.select(13, C_ArtifactUIGetEquippedArtifactInfo());
 		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
+		numPointsAvailableToSpend, xp, xpForNextPoint = MainMenuBar_GetNumArtifactTraitsPurchasableFromXP(pointsSpent, totalXP, tier);

 		local textFormat = self.db.artifact.textFormat
 		if textFormat == 'PERCENT' then