Returns cooldown information about an equipped item
See also Inventory functions.
Signature:
start, duration, enable = GetInventoryItemCooldown("unit", slot)
Arguments:
unit- A unit to query; only valid for 'player' (string, unitID)slot- An inventory slot number, as can be obtained fromGetInventorySlotInfo(number, inventoryID)
Returns:
start- The value ofGetTime()at the moment the cooldown began, or 0 if the item is ready (number)duration- The length of the cooldown, or 0 if the item is ready (number)enable- 1 if a Cooldown UI element should be used to display the cooldown, otherwise 0. (Does not always correlate with whether the item is ready.) (number)