Skip to content

Commit

Permalink
Fix issue #173
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed May 19, 2024
1 parent a9867eb commit 039b94d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions SkilletNewsData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ local isCata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC

Skillet.NewsName = "Skillet-Classic News"
Skillet.NewsData = {
{ version = "1.91",
data = {
{ name = "Changes",
data = {
{ header = "Skill Levels", body = "Fix issue #173" },
},
},
},
},
{ version = "1.90",
data = {
{ name = "Changes",
Expand Down
2 changes: 1 addition & 1 deletion UI/MainFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ function Skillet:UpdateTradeSkillWindow()
-- show the count of the item currently owned that the recipe will produce
--
if showOwned and self.currentPlayer == UnitName("player") then
local numowned = (self.db.realm.auctionData[self.currentPlayer][recipe.itemID] or 0) + GetItemCount(recipe.itemID,true)
local numowned = (self.db.realm.auctionData[self.currentPlayer][recipe.itemID] or 0) + GetItemCount(recipe.itemID or 0,true)
if numowned > 0 then
if numowned >= 1000 then
numowned = "##"
Expand Down

0 comments on commit 039b94d

Please sign in to comment.