v0.13.8

UnitStat

functionimplementedavailable in: camelot

Returns the basic attributes for a unit (strength, agility, stamina, intellect).

signaturewowlua
function UnitStat(    unit: string,    index: number): (number, number, number, number)

Parameters

nametypedescription
unitstringOnly works for "player" and "pet". Will work on "target" as long as it is equal to "player")
indexnumber

Returns

#nametype
1currentStatnumber
2effectiveStatnumber
3statPositiveBuffnumber
4statNegativeBuffnumber

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