WoW:API IsConsumableAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded code block)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}


<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Tests if the action is linked to a consumable item.
Tests if the action is linked to a consumable item.


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
isTrue = IsConsumableAction(slotID)
{{Code/Begin}}
isTrue = IsConsumableAction(slotID)
{{Code/End}}
 


== Parameters ==
== Parameters ==

Revision as of 00:44, 13 May 2007

WoW 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. Consumable actions have a small number displayed in the bottom right corner of their action icon.
  • False if the action is not consumable or if the action is empty.

Notes

Currently thrown weapons show up with a count of 1. In WoW 2.0 throwing weapons have durability and can be repaired, so this is likely a bug.