Lore archive · Warcraft Wiki, 2023 dump
API GetItemCooldown
Last wiki revision 2023-05-02
Returns cooldown info for an item ID. startTime, duration, enable = GetItemCooldown(itemInfo)
- itemInfo: :
- startTime: - The time when the cooldown started (as returned by GetTime) or zero if no cooldown.
- duration: - The number of seconds the cooldown will last, or zero if no cooldown.
- enable: - 1 if the item is ready or on cooldown, 0 if the item is used, but the cooldown didn't start yet (e.g. potion in combat).
As of patch 4.0.1, you can no longer use this function to return the Cooldown of an item link or name, you MUST pass in the itemID.
If you need the original behavior, here is a function that simulates that function...
Source
https://warcraft.wiki.gg/wiki/API_GetItemCooldown · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.