Skip to content

Commit

Permalink
Fixed cataclysm Pawn upgrade arrow not showing in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed May 12, 2024
1 parent d89a84b commit c46042a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/report-a-bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ body:
- Retail
- Retail PTR
- Retail Beta
- Wrath
- Wrath PTR
- Cataclysm
- Cataclysm PTR
- Classic Era (And SoD/Hardcore)
- Classic PTR
validations:
Expand Down
2 changes: 1 addition & 1 deletion annotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ PawnVersion = _G['PawnVersion'] --[[@as number]]
PawnGetItemData = _G['PawnGetItemData'] --[[@as fun(itemLink: string): table]]
PawnIsItemAnUpgrade = _G['PawnIsItemAnUpgrade'] --[[@as fun(itemData: table): boolean]]
PawnShouldItemLinkHaveUpgradeArrow = _G['PawnShouldItemLinkHaveUpgradeArrow'] --[[@as fun(itemLink: string): boolean]]

PawnShouldItemLinkHaveUpgradeArrowUnbudgeted = _G['PawnShouldItemLinkHaveUpgradeArrowUnbudgeted'] --[[@as fun(itemLink: string): boolean]]

--- SortBags

Expand Down
2 changes: 1 addition & 1 deletion integrations/pawn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local function onItemUpdateClassic(item)
if data.isItemEmpty or not data.slotid or not data.bagid then
item.button.UpgradeIcon:SetShown(false)
else
local isUpgrade = PawnShouldItemLinkHaveUpgradeArrow(data.itemInfo.itemLink)
local isUpgrade = PawnShouldItemLinkHaveUpgradeArrowUnbudgeted(data.itemInfo.itemLink)
item.button.UpgradeIcon:SetShown(isUpgrade or false)
end
end
Expand Down

0 comments on commit c46042a

Please sign in to comment.