Returns information about the spell a unit is currently casting

See also Unit functions, Spell functions.


name, subText, text, texture, startTime, endTime, isTradeSkill, castID, notInterruptible = UnitCastingInfo("unit")


  • unit - A unit to query (string, unitID)


  • 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 to GetTime() * 1000) (number)
  • endTime - Time at which the cast will finish (in milliseconds; can be compared to GetTime() * 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 of UNIT_SPELLCAST_* events for the same spellcast (number)
  • notInterruptible - 1 if the spell can be interrupted; otherwise nil. See the UNIT_SPELLCAST_NOT_INTERRUPTIBLE and UNIT_SPELLCAST_INTERRUPTIBLE events for changes to this status. (1nil)