v0.13.8

UnitSpellTargetClass

functionimplementedavailable in: camelot

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.

signaturewowlua
function UnitSpellTargetClass(    unit: string): string

Parameters

nametype
unitstring

Returns

classFilename · string

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.