Returns whether an action uses stackable items. Applies to consumable items such as potions, wizard oils, food and drink; not used for spells which consume reagents (for those, see IsConsumableAction).
See also Action functions.
Signature:
isStackable = IsStackableAction(slot)
Arguments:
slot- An action bar slot (number, actionID)
Returns:
isStackable- 1 if the action uses stackable items; otherwise nil (1nil)
Examples:
-- Print all "stackable actions" to your chat window
for i=1,120 do
if IsStackableAction(i) then
local count = GetActionCount(i)
local t,id = GetActionInfo(i)
local name = GetItemInfo(id)
print("Action:", i, "Item:", name, "Count:", count)
end
end