ObjectCastingTarget

Returns a WowGameObject representing the destination for a units current spell cast.

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

Example

Get the players casting target.

local target = ObjectCastingTarget('player')