CharacterCanEquipItem is returning incorrect results for weapons
joevt created this issue on 12/24/2016 on CurseForge: https://wow.curseforge.com/projects/can-i-mog-it/issues/124
My character is a Shadow Priest.
Item 25217 "Sundering Axe" is an Axe which cannot be equipped by a Shadow Priest, but IsCategoryValidForItem returns true for category 23 (Staff?). This causes CharacterCanEquipItem to return true.
I have the same issue with these items:
-
36586 "Wreaking Battleaxe" (Axe -> Category 23 Staff)
-
25223 "Windcaller Hatchet" (Axe -> Category 23 Staff)
-
55287 "Bladefist Axe" (Axe -> Category 15 One-Handed Mace)
-
36572 "Dinged Cleaver of Power" (Axe -> Category 15 One-Handed Mace)
-
55415 "Rustmaul Spear" (Polearm -> Category 23 Staff)
-
36537 "Fur-Grip Brodsword" (Sword -> Category 23 Staff)
-
36502 "Ungainly Mace" (Two-Hand Mace -> Category 23 Staff)
-
82217 "Inlaid Hammer" (Two-Hand Mace -> Category 23 Staff)
Maybe IsCategoryValidForItem has a bug, or maybe it doesn't do what you think it does, or there is a staff with the same appearance as the axe?