UnitPowerPercent
functionimplementedavailable in: camelot
Queries the percent of power remaining, optionally evaluating it against a supplied curve.
function UnitPowerPercent( unitToken: string, powerType: PowerType?, unmodified: boolean, curve: LuaCurveObjectBase?): LuaCurveEvaluatedResultParameters
| name | type | description |
|---|---|---|
unitToken | string | |
powerType | PowerType? | |
unmodified | boolean | Default: false. |
curve | LuaCurveObjectBase? |
Returns
result · LuaCurveEvaluatedResult · If no curve is specified, a floating point percentage value. Else, the result of evaluating the curve with the percentage as the input.
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 ↗.