Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Get cooldown information for an inventory item.
start, duration, enable = GetInventoryItemCooldown(unit, invSlotId)
Arguments[]
- unit
- string : UnitId - The unit whose inventory is to be queried.
- invSlotId
- number : InventorySlotId - to be queried, obtained via GetInventorySlotInfo.
Returns[]
- start
- number - The start time of the cooldown period, or 0 if there is no cooldown (or no item in the slot)
- duration
- number - The duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty.
- enable
- number - Returns 1 or 0. 1 if the inventory item is capable of having a cooldown, 0 if not.