UnitStat
functionimplementedavailable in: camelot
Returns the basic attributes for a unit (strength, agility, stamina, intellect).
function UnitStat( unit: string, index: number): (number, number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | Only works for "player" and "pet". Will work on "target" as long as it is equal to "player") |
index | number |
Returns
| # | name | type |
|---|---|---|
| 1 | currentStat | number |
| 2 | effectiveStat | number |
| 3 | statPositiveBuff | number |
| 4 | statNegativeBuff | number |
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 ↗.