Returns information about the spell a unit is currently casting
See also Unit functions, Spell functions.
Signature:
name, subText, text, texture, startTime, endTime, isTradeSkill, castID, notInterruptible = UnitCastingInfo("unit")
Arguments:
unit- A unit to query (string, unitID)
Returns:
name- Name of the spell being cast (string)subText- Secondary text associated with the spell (e.g."Rank 5", "Racial", etc.) (string)text- Text to be displayed on a casting bar (string)texture- Path to an icon texture for the spell (string)startTime- Time at which the cast was started (in milliseconds; can be compared toGetTime()* 1000) (number)endTime- Time at which the cast will finish (in milliseconds; can be compared toGetTime()* 1000) (number)isTradeSkill- 1 if the spell being cast is a trade skill recipe; otherwise nil (1nil)castID- Reference number for this spell; matches the 4th argument ofUNIT_SPELLCAST_*events for the same spellcast (number)notInterruptible- 1 if the spell can be interrupted; otherwise nil. See theUNIT_SPELLCAST_NOT_INTERRUPTIBLEandUNIT_SPELLCAST_INTERRUPTIBLEevents for changes to this status. (1nil)