I'm writing an add-on that uses the "CRAFTING_TYPE_" constants to determine which type of crafting is taking place and then displays any crafting writ associated with that type of crafting so that I don't have to repeatedly open and close the crafting station to see which items I need to craft for that type of writ.
I have the following for constants:
CRAFTING_TYPE_ALCHEMY
CRAFTING_TYPE_BLACKSMITHING
CRAFTING_TYPE_CLOTHIER
CRAFTING_TYPE_ENCHANTING
CRAFTING_TYPE_PROVISIONING
CRAFTING_TYPE_WOODWORKING
The constants for all crafting types except enchanting works. Has anyone else experienced this issue?
Note: I can get my add-on to work by testing for GetCraftingInteractionType() == 3, but not when testing for the constant as listed above for enchanting.