>wowhelm_
Loading ruleset status…
~/forever/addon-api/function/UnitPowerPercent

UnitPowerPercent

documented function · Unit
UnitPowerPercent(unitToken, powerType?, unmodified, curve?) : result

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

──ARGUMENTS
unitToken
UnitTokenPvPRestrictedForAddOns
powerType
PowerType, optional
unmodified
bool, default false
curve
LuaCurveObjectBase, optional
──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.)
──DETAILS
Secret When Unit Power Restricted
true
Secret When Curve Secret
true
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.