Tooltip filter does not work for items in the bank
Elberet opened this issue ยท 1 comments
In WoW Cataclysm Classic, items in the bank, i.e. bag -1, never match any category based using the tooltip filter. This is because the API has changed, and GameTooltip:SetBagItem
no longer works with the player's bank. Instead, GameTooltip:SetInventoryItem
must be used to generate tooltip text for items in the main bank window.
I've patched Tooltip.lua
to use the newer API and the filter now works as expected:
Old:
Baggins/src/filters/Tooltip.lua
Line 66 in 27fe080
New:
if bag == -1 then
local invId = BankButtonIDToInvSlotID(slot, false)
tip:SetInventoryItem("player", invId)
else
tip:SetBagItem(bag, slot)
end