ObjectCastingInfo

Returns the casting and channeling spell of a WowGameObject.

ObjectCastingInfo(--[[(1)]]objectReference) : number[] | false
  1. See Object Reference for more information on possible values.

Example

Get the players casting spell.

local casting, channeling = ObjectCastingInfo('player')