Quantcast

-Addon will be automatically disabled for characters that are level 85.

Xruptor [12-13-10 - 13:34]
-Addon will be automatically disabled for characters that are level 85.
Filename
XanEXP.lua
XanEXP.toc
diff --git a/XanEXP.lua b/XanEXP.lua
index 69326fb..bbe353b 100644
--- a/XanEXP.lua
+++ b/XanEXP.lua
@@ -1,5 +1,8 @@
 --Inspired by Author Tekkub and his mod PicoEXP

+--don't load the addon for maxed leveled characters
+if UnitLevel("player") >= 85 then return end
+
 local start, max, starttime, startlevel

 local f = CreateFrame("frame","XanEXP",UIParent)
diff --git a/XanEXP.toc b/XanEXP.toc
index eac7ae3..a32b212 100644
--- a/XanEXP.toc
+++ b/XanEXP.toc
@@ -2,7 +2,7 @@
 ## Title: XanEXP
 ## Notes: A small window display current xp and other xp information
 ## Author: Xruptor
-## Version: 1.6
+## Version: 1.7
 ## SavedVariablesPerCharacter: XanEXP_DB

 XanEXP.lua