UnitCastingInfo
functionimplementedavailable in: camelot
Returns information about the spell currently being cast by the specified unit.
function UnitCastingInfo( unit: string): (string, string, number, number, number, boolean, string, boolean?, number, UnitCastBarID?, number)Parameters
| name | type |
|---|---|
unit | string |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | name | string | The name of the spell, or nil if no spell is being cast. |
| 2 | displayName | string | The name to be displayed. |
| 3 | textureID | number | The texture path associated with the spell icon. |
| 4 | startTimeMs | number | Specifies when casting began in milliseconds (corresponds to GetTime()*1000). |
| 5 | endTimeMs | number | Specifies when casting will end in milliseconds (corresponds to GetTime()*1000). |
| 6 | isTradeskill | boolean | Specifies if the cast is a tradeskill |
| 7 | castID | string | GUID - The unique identifier for this spell cast, for example Cast-3-3890-1159-21205-8936-00014B7E7F. |
| 8 | notInterruptible | boolean? | if true, indicates that this cast cannot be interrupted with abilities like Kick or Pummel. In default UI those spells have shield frame around their icons on enemy cast bars. Always returns nil in Classic . |
| 9 | castingSpellID | number | The spell's unique identifier. |
| 10 | castBarID | UnitCastBarID? | |
| 11 | delayTimeMs | number | Total accrued delay for this spell cast from pushback. |
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 ↗.