Add check for players under max rank
Sasky [03-31-15 - 06:33]
Add check for players under max rank
diff --git a/ChampionBar.lua b/ChampionBar.lua
index 324bf76..524be6f 100644
--- a/ChampionBar.lua
+++ b/ChampionBar.lua
@@ -70,6 +70,11 @@ end
local function onAddOnLoaded(_, addonName)
if addonName ~= "ChampionBar" then return end
+ --Only show for max VR characters
+ if GetUnitLevel("player") ~= 50 or GetUnitVeteranRank("player") ~= 14 then
+ --TODO: Add handler for levelup for if hit VR14
+ return
+ end
replaceBars()
replaceHandlers()
registerEvents()