mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 16:10:01 +00:00
Show proper charges for items in bags with nampower
This commit is contained in:
+1
-11
@@ -213,16 +213,6 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
|
||||
end
|
||||
end
|
||||
|
||||
-- Enhanced GetContainerItemInfo for charges
|
||||
-- SuperWoW returns charges as negative numbers
|
||||
pfUI.api.GetItemCharges = function(bag, slot)
|
||||
local texture, count = GetContainerItemInfo(bag, slot)
|
||||
if count and count < 0 then
|
||||
return math.abs(count) -- Return positive charge count
|
||||
end
|
||||
return nil -- Not a charged item
|
||||
end
|
||||
|
||||
-- Weapon Enchant Info on other players
|
||||
if GetWeaponEnchantInfo then
|
||||
local origGetWeaponEnchantInfo = GetWeaponEnchantInfo
|
||||
@@ -359,4 +349,4 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user