Skip to content

Commit

Permalink
Shadowlands pre-patch update
Browse files Browse the repository at this point in the history
Fixed Classic support
  • Loading branch information
Ketho committed Oct 20, 2020
1 parent 0552a32 commit 0c79a7d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion SimpleDing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ local curTPM2, totalTPM2
local crop = ":64:64:4:60:4:60"
local args = {}

local isClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)

local function GetCompatMaxLevel()
if isClassic then
return MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()]
else
return GetMaxLevelForPlayerExpansion()
end
end

S.player = {
name = UnitName("player"),
level = UnitLevel("player"),
maxlevel = GetMaxLevelForPlayerExpansion(),
maxlevel = GetCompatMaxLevel(),
}
local player = S.player

Expand Down

0 comments on commit 0c79a7d

Please sign in to comment.