v0.13.8

UnitClass

functionimplementedavailable in: camelot

Returns the class of the unit.

signaturewowlua
function UnitClass(    unit: string): (string?, string?, number?)

Parameters

nametype
unitstring

Returns

#nametypedescription
1classNamestring?Localized name, e.g. "Warrior" or "Guerrier".
2classFilenamestring?Locale-independent name, e.g. "WARRIOR".
3classIDnumber?

Blizzard's documentation says it may return nothing.

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