>wowhelm_
Loading ruleset status…
~/forever/addon-api/function/UnitSpellTargetName

UnitSpellTargetName

documented function · Unit
UnitSpellTargetName(unit) : targetName

If 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.