~/forever/addon-api/function/UnitSpellTargetName
UnitSpellTargetName
documented function · Unit
UnitSpellTargetName(unit) : targetNameIf the unit is currently casting a spell, returns the name of the spell's target unit. Returns nil if the unit is not casting a spell or the spell has no target.
──ARGUMENTS
- unit
- UnitToken
──RETURNS
- targetName
- string
──DETAILS
- May Return Nothing
- true
- Secret Returns
- true
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.