compat: replace max level var with existing one

This commit is contained in:
shagu
2020-08-16 11:11:06 +02:00
parent 7669e64173
commit b903fffbfd
3 changed files with 3 additions and 5 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ local function OnEnter(self)
-- set either experience, reputation or flex-rep handler
local mode = self.display
if self.display == "XPFLEX" then
mode = UnitLevel("player") < MAX_LEVEL and "XP" or "REP"
mode = UnitLevel("player") < MAX_PLAYER_LEVEL and "XP" or "REP"
elseif self.display == "FLEX" then
mode = "REP"
end
@@ -122,7 +122,7 @@ end
local mode = self.display
if self.display == "XPFLEX" then
self.faction = data.faction or nil
mode = UnitLevel("player") < MAX_LEVEL and "XP" or "REP"
mode = UnitLevel("player") < MAX_PLAYER_LEVEL and "XP" or "REP"
elseif self.display == "FLEX" then
self.faction = data.faction or nil
mode = "REP"
@@ -201,7 +201,7 @@ end
local barStrata = "LOW"
local restedStrata = "MEDIUM"
if C.panel.xp.dont_overlap == "1" then
barStrata = "MEDIUM"
restedStrata = "LOW"