panel: refresh ammo slots on bag update

This commit is contained in:
shagu
2024-11-02 14:40:51 +01:00
parent b54d172175
commit 073bf5ec42
+1
View File
@@ -520,6 +520,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
local widget = CreateFrame("Frame", "pfPanelWidgetAmmo", UIParent)
widget:RegisterEvent("PLAYER_ENTERING_WORLD")
widget:RegisterEvent("UNIT_INVENTORY_CHANGED")
widget:RegisterEvent("BAG_UPDATE")
widget.Tooltip = function()
if GetInventoryItemQuality("player", 0) then
local ammo = GetInventoryItemCount("player", 0)