New release

Leandro Silva [11-04-18 - 18:21]
New release
Filename
LeoAltholic.lua
LeoAltholic.txt
LeoAltholicInit.lua
ui/stats.lua
diff --git a/LeoAltholic.lua b/LeoAltholic.lua
index d3f6545..824673d 100644
--- a/LeoAltholic.lua
+++ b/LeoAltholic.lua
@@ -170,6 +170,8 @@ local function initAccountData()
     LeoAltholic.globalData.AccountData.inventory.ap = GetCurrencyAmount(CURT_ALLIANCE_POINTS, CURRENCY_LOCATION_BANK)
     LeoAltholic.globalData.AccountData.inventory.telvar = GetCurrencyAmount(CURT_TELVAR_STONES, CURRENCY_LOCATION_BANK)
     LeoAltholic.globalData.AccountData.inventory.writVoucher = GetCurrencyAmount(CURT_WRIT_VOUCHERS, CURRENCY_LOCATION_BANK)
+    LeoAltholic.globalData.AccountData.inventory.soulGemFilled = LeoAltholic.globalData.AccountData.inventory.soulGemFilled or 0
+    LeoAltholic.globalData.AccountData.inventory.soulGemEmpty = LeoAltholic.globalData.AccountData.inventory.soulGemEmpty or 0
 end

 local function initCharsData()
@@ -178,7 +180,7 @@ local function initCharsData()

     LeoAltholic.CharName = GetUnitName("player")

-    local function getStat(stat) return GetPlayerStat(stat, STAT_BONUS_OPTION_APPLY_BONUS, STAT_SOFT_CAP_OPTION_APPLY_SOFT_CAP) end
+    local function getStat(stat) return GetPlayerStat(stat, STAT_BONUS_OPTION_APPLY_BONUS) end

     local numChars = GetNumCharacters()
     for k, v in pairs(LeoAltholic.globalData.CharList) do
@@ -366,7 +368,7 @@ local function initCharsData()
         return {rank = rank, max = GetMaxSimultaneousSmithingResearch(craft) or 1}
     end

-    if char.research.doing ~= nil then
+    if char.research ~= nil and char.research.doing ~= nil then
         for _,craft in pairs(LeoAltholic.craftResearch) do
             if char.research.doing[craft] ~= nil then
                 for line = 1, GetNumSmithingResearchLines(craft) do
@@ -1182,6 +1184,8 @@ local function initialize()
         {0,1000,10000,"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y9KM4PZU2UZ6A"},
         "If you found a bug, have a request or a suggestion, or simply wish to donate, send a mail.")
     LeoAltholic.feedback = feedbackWindow
+    LeoAltholic.feedback:SetDrawLayer(DL_OVERLAY)
+    LeoAltholic.feedback:SetDrawTier(DT_MEDIUM)

     LeoAltholic.RestorePosition()
     LeoAltholicToolbarUI.RestorePosition()
diff --git a/LeoAltholic.txt b/LeoAltholic.txt
index bd74cb3..09f240a 100644
--- a/LeoAltholic.txt
+++ b/LeoAltholic.txt
@@ -1,6 +1,6 @@
 ## Title: Leo's Altholic
 ## APIVersion: 100024 100025
-## Version: 1.6.3
+## Version: 1.6.4
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoAltholicSavedVariables LeoAltholicCharVariables
 ## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoAltholicInit.lua b/LeoAltholicInit.lua
index d978ae7..6c18c93 100644
--- a/LeoAltholicInit.lua
+++ b/LeoAltholicInit.lua
@@ -6,7 +6,7 @@ LeoAltholicToolbarUI = LeoAltholicToolbarUI or {}

 LeoAltholic.name = "LeoAltholic"
 LeoAltholic.displayName = "Leo's Altholic"
-LeoAltholic.version = "1.6.3"
+LeoAltholic.version = "1.6.4"
 LeoAltholic.chatPrefix = "|c39B027" .. LeoAltholic.name .. "|r: "

 LeoAltholic.TAB_BIO = "Bio"
diff --git a/ui/stats.lua b/ui/stats.lua
index 3c8647e..992613e 100644
--- a/ui/stats.lua
+++ b/ui/stats.lua
@@ -29,7 +29,7 @@ function LeoAltholicStatsList:SetupEntry(control, data)
     control.name:SetText(data.name)

     control.points = GetControl(control, "Points")
-    control.points:SetText("|c596cfd" .. data.magicka.points .. "|r / |cCB110E" .. data.health.points .. "|r / |c21A121" .. data.health.points .. "|r")
+    control.points:SetText("|c596cfd" .. data.magicka.points .. "|r / |cCB110E" .. data.health.points .. "|r / |c21A121" .. data.stamina.points .. "|r")

     control.maximum = GetControl(control, "Maximum")
     control.maximum:SetText("|c596cfd" .. data.magicka.max .. "|r / |cCB110E" .. data.health.max .. "|r / |c21A121" .. data.stamina.max .. "|r")