From c46042a1c215bc6f0cf1644073804c0c67d55c8d Mon Sep 17 00:00:00 2001 From: Antonio Lobato Date: Sun, 12 May 2024 16:05:32 -0700 Subject: [PATCH] Fixed cataclysm Pawn upgrade arrow not showing in some cases. --- .github/ISSUE_TEMPLATE/report-a-bug.yml | 4 ++-- annotations.lua | 2 +- integrations/pawn.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/report-a-bug.yml b/.github/ISSUE_TEMPLATE/report-a-bug.yml index 04f6a3db..f66ca671 100644 --- a/.github/ISSUE_TEMPLATE/report-a-bug.yml +++ b/.github/ISSUE_TEMPLATE/report-a-bug.yml @@ -25,8 +25,8 @@ body: - Retail - Retail PTR - Retail Beta - - Wrath - - Wrath PTR + - Cataclysm + - Cataclysm PTR - Classic Era (And SoD/Hardcore) - Classic PTR validations: diff --git a/annotations.lua b/annotations.lua index 470e2efb..1a05aa92 100644 --- a/annotations.lua +++ b/annotations.lua @@ -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 diff --git a/integrations/pawn.lua b/integrations/pawn.lua index bd3fdb9b..ffedd042 100644 --- a/integrations/pawn.lua +++ b/integrations/pawn.lua @@ -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