Note: This is for Classic
Blizzard made a bunch of changes over the course of beta that slowly broke one of my addons.
I'm trying to fix an addon, but one issue i'm running into is I need to find a way to determine my current equipped range weapon's speed for a hunter.
I know I can get my weapon speed (with haste applied) by using UnitRangedDamage.
I need to find a way to get the base speed.
I tried by getting the item link and finding the item mod for weapon speed via the following:
Code:
bowlink = GetInventoryItemLink("player", 18)
stats = GetItemStats(bowlink)
print(bowlink)
print(tostring(stats["ITEM_MOD_SPEED_SHORT"]))
However i'm getting back nil for the ITEM_MOD_SPEED_SHORT stat. I also tried the item mod
ITEM_MOD_CR_UNUSED_3_SHORT which I found on
https://www.townlong-yak.com/framexm...balStrings.lua but it seems like that is not used or is nil as well.
Any ideas would be really appreciated.
Edit: Just an update...
I found I can print out the stats that the item has by using the following..
Code:
for stat, value in pairs(stats) do
print(stat)
end
It looks like there is not a weapon speed stat.
Any alternative routes to get my base ranged weapon speed would be amazing.