WowAddons

World of Warcraft Forever API · UnitHealPredictionCalculatorAPI.md, for your AI

UnitHealPredictionCalculatorAPI (widget methods)

35 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

EvaluateCurrentHealthPercent

result = self:EvaluateCurrentHealthPercent(curve)

Calculates the percentage of current unit health and evaluates it against the supplied curve.

Arguments

curveLuaCurveObjectBase

Returns

resultLuaCurveEvaluatedResult

EvaluateMissingHealthPercent

result = self:EvaluateMissingHealthPercent(curve)

Calculates the percentage of missing unit health and evaluates it against the supplied curve.

Arguments

curveLuaCurveObjectBase

Returns

resultLuaCurveEvaluatedResult

GetCurrentHealth

currentHealth = self:GetCurrentHealth()

Returns the base amount of unit health.

Returns

currentHealthnumber

GetCurrentHealthPercent

currentHealthPercent = self:GetCurrentHealthPercent()

Returns the percentage of current unit health.

Returns

currentHealthPercentnumber

GetDamageAbsorbClampMode

damageAbsorbClampMode = self:GetDamageAbsorbClampMode()

Returns the configured damage absorb clamping mode.

Returns

damageAbsorbClampModeUnitDamageAbsorbClampMode

GetDamageAbsorbs

amount, clamped = self:GetDamageAbsorbs()

Calculates damage absorb values and clamping according to the configured options.

Returns

amountnumberAmount of applied damage absorb affects with potential reductions from clamping included.
clampedboolIf true, the value is in excess of the clamp boundary.

GetHealAbsorbClampMode

healAbsorbClampMode = self:GetHealAbsorbClampMode()

Returns the configured heal absorb clamping mode.

Returns

healAbsorbClampModeUnitHealAbsorbClampMode

GetHealAbsorbMode

healAbsorbMode = self:GetHealAbsorbMode()

Returns the configured heal absorb processing mode.

Returns

healAbsorbModeUnitHealAbsorbMode

GetHealAbsorbs

amount, clamped = self:GetHealAbsorbs()

Calculates heal absorb values and clamping according to the configured options.

Returns

amountnumberAmount of applied heal absorb affects with potential reductions from incoming heals and clamping included.
clampedboolIf true, the value is in excess of the clamp boundary.

GetIncomingHealClampMode

incomingHealClampMode = self:GetIncomingHealClampMode()

Returns the configured incoming heal clamping mode.

Returns

incomingHealClampModeUnitIncomingHealClampMode

GetIncomingHealOverflowPercent

incomingHealOverflowPercent = self:GetIncomingHealOverflowPercent()

Returns the configured incoming heal maximum overflow percentage.

Returns

incomingHealOverflowPercentnumber

GetIncomingHeals

amount, amountFromHealer, amountFromOthers, clamped = self:GetIncomingHeals()

Calculates incoming heal values and clamping according to the configured options.

Returns

amountnumberAmount of incoming heals across all units with potential reductions from heal absorb effects included.
amountFromHealernumberAmount of incoming heals from the healer unit. Will never exceed the all-units value.
amountFromOthersnumberAmount of incoming heals from units other than theh healer. Calculated as the difference between amount and amount-from-healer.
clampedboolIf true, the value is in excess of the clamp boundary.

GetMaximumDamageAbsorbs

maximumDamageAbsorbs = self:GetMaximumDamageAbsorbs()

Returns the maximum clamping amount for damage absorbs.

Returns

maximumDamageAbsorbsnumber

GetMaximumHealAbsorbs

maximumHealAbsorbs = self:GetMaximumHealAbsorbs()

Returns the maximum clamping amount for heal absorbs.

Returns

maximumHealAbsorbsnumber

GetMaximumHealth

maximumHealth = self:GetMaximumHealth()

Returns the base amount of maximum unit health.

Returns

maximumHealthnumber

GetMaximumHealthMode

maximumHealthMode = self:GetMaximumHealthMode()

Returns the configured maximum health mode.

Returns

maximumHealthModeUnitMaximumHealthMode

GetMaximumIncomingHeals

maximumIncomingHeals = self:GetMaximumIncomingHeals()

Returns the maximum clamping amount for incoming heals.

Returns

maximumIncomingHealsnumber

GetMissingHealth

missingHealth = self:GetMissingHealth()

Returns the base amount of missing unit health.

Returns

missingHealthnumber

GetMissingHealthPercent

missingHealthPercent = self:GetMissingHealthPercent()

Returns the percentage of missing unit health.

Returns

missingHealthPercentnumber

GetPredictedValues

predictedValues = self:GetPredictedValues()

Returns the raw total figures used for data calculations.

Returns

predictedValuesUnitHealPredictionValues

GetTotalDamageAbsorbs

totalDamageAbsorbs = self:GetTotalDamageAbsorbs()

Returns the base total amount of all applied damage absorb shields.

Returns

totalDamageAbsorbsnumber

GetTotalHealAbsorbs

totalHealAbsorbs = self:GetTotalHealAbsorbs()

Returns the base total amount of all applied heal absorption effects.

Returns

totalHealAbsorbsnumber

GetTotalIncomingHeals

totalIncomingHeals = self:GetTotalIncomingHeals()

Returns the base total amount of all incoming heals.

Returns

totalIncomingHealsnumber

GetTotalIncomingHealsFromHealer

totalIncomingHealsFromHealer = self:GetTotalIncomingHealsFromHealer()

Returns the base total amount of all incoming heals from the healer unit, if any.

Returns

totalIncomingHealsFromHealernumber

HasSecretValues

hasSecretValues = self:HasSecretValues()

Returns true if the object has been configured with any secret values.

Returns

hasSecretValuesbool

Reset

self:Reset()

Resets all stored state on the object.

ResetPredictedValues

self:ResetPredictedValues()

Resets all stored healing values used for calculations.

SetDamageAbsorbClampMode

self:SetDamageAbsorbClampMode(damageAbsorbClampMode)

Changes the clamping mode used when calculating damage absorb amounts.

Arguments

damageAbsorbClampModeUnitDamageAbsorbClampMode

SetHealAbsorbClampMode

self:SetHealAbsorbClampMode(healAbsorbClampMode)

Changes the clamping mode used when calculating heal absorb amounts.

Arguments

healAbsorbClampModeUnitHealAbsorbClampMode

SetHealAbsorbMode

self:SetHealAbsorbMode(healAbsorbMode)

Changes the processing mode used when calculating both heal absorb and incoming heal amounts.

Arguments

healAbsorbModeUnitHealAbsorbMode

SetIncomingHealClampMode

self:SetIncomingHealClampMode(incomingHealClampMode)

Changes the clamping mode used when calculating incoming heal amounts.

Arguments

incomingHealClampModeUnitIncomingHealClampMode

SetIncomingHealOverflowPercent

self:SetIncomingHealOverflowPercent(incomingHealOverflowPercent)

Changes the maximum overflow percentage for incoming heals. Increasing this to a value over 1.0 will mean that incoming heals can extend beyond maximum health.

Arguments

incomingHealOverflowPercentnumber

SetMaximumHealthMode

self:SetMaximumHealthMode(maximumHealthMode)

Changes the calculation mode for maximum health values used for clamping.

Arguments

maximumHealthModeUnitMaximumHealthMode

SetPredictedValues

self:SetPredictedValues(predictedValues)

Sets the healing values used for all calculations.

Arguments

predictedValuesUnitHealPredictionValues

SetToDefaults

self:SetToDefaults()

Resets all state on the object, and clears the secret values flag.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows