API IsConsumableAction

Tests if the action is linked to a consumable item.

isTrue = IsConsumableAction(slotID)

Parameters
Arguments


 * slotID - ActionSlot : The tested action slot.

Returns


 * isTrue - Boolean
 * True if the action in the specified slot is linked to a consumable, e.g. a potion action.
 * False if the action is not consumable or if the action is empty.

Details

 * Most consumable actions have a small number displayed in the bottom right corner of their action icon.
 * However, in Classic, spells requiring a reagent may return true to IsConsumableAction but false to both and ; such spells do not display a number.