v0.13.8

UnitPowerPercent

functionimplementedavailable in: camelot

Queries the percent of power remaining, optionally evaluating it against a supplied curve.

signaturewowlua
function UnitPowerPercent(    unitToken: string,    powerType: PowerType?,    unmodified: boolean,    curve: LuaCurveObjectBase?): LuaCurveEvaluatedResult

Parameters

nametypedescription
unitTokenstring
powerTypePowerType?
unmodifiedbooleanDefault: false.
curveLuaCurveObjectBase?

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