GetAbilityCastInfo
ESO Lua API function — used by 42 of the 3,030 addons we indexed (combined 29,618,893 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetAbilityCastInfo(integer abilityId, integer:nilable overrideRank, string casterUnitTag)Returns: bool:nilable channeled, integer:nilable durationValue
Real usage — from Combat Metrics
if abilityDurations[abilityId] == nil then
local channeled, castTime = GetAbilityCastInfo(abilityId)
Short excerpt from the shipping addon Combat Metrics — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Combat Metrics | 7,085,289 |
| Action Duration Reminder | 6,522,011 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| LibCombat | 5,017,654 |
| RaidNotifier Updated | 2,789,746 |
| Combat Metronome (GCD Tracker) | 483,791 |