UnitChannelInfo
functionimplementedavailable in: camelot
Returns information about the spell currently being channeled by the specified unit.
function UnitChannelInfo( unit: string): (string, string, number, number, number, boolean, boolean?, number, boolean, number, UnitCastBarID?)Parameters
| name | type |
|---|---|
unit | string |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | name | string | The name of the spell, or nil if no spell is being channeled. |
| 2 | displayName | string | The name to be displayed. |
| 3 | textureID | number | The texture path associated with the spell icon. |
| 4 | startTimeMs | number | Specifies when channeling began, in milliseconds (corresponds to GetTime()*1000). |
| 5 | endTimeMs | number | Specifies when channeling will end, in in milliseconds (corresponds to GetTime()*1000). |
| 6 | isTradeskill | boolean | Specifies if the cast is a tradeskill. |
| 7 | notInterruptible | boolean? | if true, indicates that this channeling cannot be interrupted with abilities like Kick or Pummel. In default UI those spells have shield frame around their icons on enemy channeling bars. Always returns nil in Classic . |
| 8 | spellID | number | The spell's unique identifier. |
| 9 | isEmpowered | boolean | |
| 10 | numEmpowerStages | number | |
| 11 | castBarID | UnitCastBarID? |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.