View Single Post
03-28-15, 02:34 PM   #9
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
IsUsableItem() ought to be renamed, because its name is very misleading.
Maybe I should have been clearer. The reason I previously had that in my code was because I didn't want to add that tooltip to inaccessible items. It was not because I thought it would only apply to usable items.

I failed to follow the basic principle of showing all code. I wanted to determine if items were usable because I wanted to offer the ability to bind them to a DIY extra button.

I found that GetItemSpell() works even with items that do not have USE_COLON in the tooltip, but it will not trigger for items that have no direct use.
__________________
  Reply With Quote