From b8f46eca33c13ec64f44c049300be509fa7b113a Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Sun, 23 Nov 2025 14:07:24 +0400 Subject: [PATCH] hotfix --- UI/ItemButton.lua | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/UI/ItemButton.lua b/UI/ItemButton.lua index 2bb1e0c..6bc4920 100644 --- a/UI/ItemButton.lua +++ b/UI/ItemButton.lua @@ -661,27 +661,27 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha end end - -- Check for quest items and show golden border + icon (higher priority than quality border) - -- Only check for current character's items (not other characters or bank in read-only mode) - local isQuest, isQuestStarter = IsQuestItem(bagID, slotID) + if not self.otherChar and not self.isReadOnly then + local isQuest, isQuestStarter = IsQuestItem(bagID, slotID) + -- Update quest icon with the appropriate texture + Guda_ItemButton_UpdateQuestIcon(self, isQuest, isQuestStarter) + if self.questBorder then + if isQuest then + self.questBorder:Show() + else + self.questBorder:Hide() + end + end - if self.questBorder then - if isQuest then - self.questBorder:Show() - else - self.questBorder:Hide() - end - end + if self.questIcon then + if isQuest then + self.questIcon:Show() + else + self.questIcon:Hide() + end + end + end - if self.questIcon then - if isQuest then - self.questIcon:Show() - else - self.questIcon:Hide() - end - end - -- Update quest icon with the appropriate texture - Guda_ItemButton_UpdateQuestIcon(self, isQuest, isQuestStarter) self:Show() else self.hasItem = false