CastingInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in

Returns the player's currently casting spell.

name, text, texture, startTime, endTime, isTradeSkill, castID, notInterruptible, spellID = CastingInfo()

Returns

name
string - The name of the spell.
text
string - The name to be displayed.
texture
number : FileID
startTime
number - Specifies when casting began in milliseconds (corresponds to GetTime()*1000).
endTime
number - Specifies when casting will end in milliseconds (corresponds to GetTime()*1000).
isTradeSkill
boolean
castID
string - e.g. "Cast-3-4479-0-1318-2053-000014AD63"
notInterruptible
boolean - This is always nil.
spellID
number

Details

  • In Classic only casting information for the player is available. This API is essentially the same as UnitCastingInfo("player")

Patch changes

WoW Icon update.png Patch 1.13.2 (2019-08-26): Added.