v0.13.8

UnitGetAvailableRoles

functionimplementedavailable in: camelot

Returns the recommended roles for a specified unit

signaturewowlua
function UnitGetAvailableRoles(    unit: string): (boolean?, boolean?, boolean?)

Parameters

nametypedescription
unitstringUnitId

Returns

#nametypedescription
1tankboolean?Whether the unit can perform as a tank
2healerboolean?
3dpsboolean?Whether the unit can perform as a dps

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) (UnitRole system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.