classicapi migration

This commit is contained in:
Brues
2026-05-29 22:56:12 -05:00
parent 07377ad92e
commit 841399a0c7
5 changed files with 20 additions and 476 deletions
+1 -3
View File
@@ -318,9 +318,7 @@ pfUI:RegisterModule("swingtimer", function ()
local _, _, id = string.find(l, "item:(%d+)")
id = tonumber(id)
if not id then return false end
local s = GetItemStats and GetItemStats(id)
if not s then return false end
return OH_WEAPON_TYPES[s.inventoryType] == true
return OH_WEAPON_TYPES[C_Item.GetItemInventoryTypeByID(id)] == true
end
local function UpdateWeaponSpeeds()