feat: track, untrack characters from money, inventory and view

This commit is contained in:
Vati
2026-04-06 13:28:14 +04:00
parent cfc9430fac
commit e40ef41602
5 changed files with 209 additions and 32 deletions
+2 -2
View File
@@ -279,8 +279,8 @@ function Tooltip:AddInventoryInfo(tooltip, link)
-- Count items across characters on current realm only
for charName, charData in pairs(Guda_DB.characters) do
-- Ensure charData is actually a table and on current realm
if type(charData) == "table" and charData.realm == currentRealm then
-- Ensure charData is actually a table, on current realm, and not blacklisted
if type(charData) == "table" and charData.realm == currentRealm and not addon.Modules.DB:IsGoldBlacklisted(charName) then
local isCurrentChar = (charName == currentPlayerName)
local bagCount, bankCount, equippedCount, mailCount = CountItemsForCharacter(itemID, charData, isCurrentChar)