v0.13.8

UnitCastingInfo

functionimplementedavailable in: camelot

Returns information about the spell currently being cast by the specified unit.

signaturewowlua
function UnitCastingInfo(    unit: string): (string, string, number, number, number, boolean, string, boolean?, number, UnitCastBarID?, number)

Parameters

nametype
unitstring

Returns

#nametypedescription
1namestringThe name of the spell, or nil if no spell is being cast.
2displayNamestringThe name to be displayed.
3textureIDnumberThe texture path associated with the spell icon.
4startTimeMsnumberSpecifies when casting began in milliseconds (corresponds to GetTime()*1000).
5endTimeMsnumberSpecifies when casting will end in milliseconds (corresponds to GetTime()*1000).
6isTradeskillbooleanSpecifies if the cast is a tradeskill
7castIDstringGUID - The unique identifier for this spell cast, for example Cast-3-3890-1159-21205-8936-00014B7E7F.
8notInterruptibleboolean?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 .
9castingSpellIDnumberThe spell's unique identifier.
10castBarIDUnitCastBarID?
11delayTimeMsnumberTotal 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 ↗.