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

UnitSpellTargetClass

documented function · Unit
UnitSpellTargetClass(unit) : classFilename

If the unit is currently casting a spell, returns the class 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
classFilename
cstring
──DETAILS
Secret Returns
true
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.