UnitGetAvailableRoles
functionimplementedavailable in: camelot
Returns the recommended roles for a specified unit
function UnitGetAvailableRoles( unit: string): (boolean?, boolean?, boolean?)Parameters
| name | type | description |
|---|---|---|
unit | string | UnitId |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | tank | boolean? | Whether the unit can perform as a tank |
| 2 | healer | boolean? | |
| 3 | dps | boolean? | 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 ↗.