Skip to main content

HealthPrediction

Health Prediction class

Properties

incomingTargetedDamage: list - std::map<unsigned, std::vector<IncomingDamage>>

incomingAttacks: list - std::map<unsigned, std::vector<IncomingAttack>>

incomingAttacksHero: list - std::map<unsigned, std::vector<IncomingAttack>>

Functions

GetLaneClearHealthPrediction

HealthPrediction.GetLaneClearHealthPrediction(unit: AIBaseClient, time: number) number, bool, AITurretClient

ArgumentTypeDescription
unitAIBaseClientUnit to predict health for.
timenumber - floatPrediction time.

Get health prediction for given unit and time. Returns predicted health and bool if unit has turret aggro and if yes also AITurretClient.


GetHealthPrediction

HealthPrediction.GetHealthPrediction(
unit: AIBaseClient,
time: number,
includeHeroesAttack?: boolean
) number - float

ArgumentTypeDescription
unitAIBaseClientUnit to predict health for.
timenumber - floatPrediction time.
includeHeroesAttack?booleanWhether include hero attacks or not (false by default).

Get health prediction for given unit, time and specify whether hero attacks should be included or not.


GetIncomingDamage

HealthPrediction.GetIncomingDamage(
unit: AIBaseClient,
time: number,
includeSkillshot?: boolean,
includeAutoAttacks?: boolean
) number - float

ArgumentTypeDescription
unitAIBaseClientUnit to predict health for.
timenumber - floatPrediction time.
includeSkillshot?booleanWhether include skillshots or not (true by default).
includeAutoAttacks?booleanWhether include auto attacks or not (true by default).

Get predicted incoming damage for given unit, time and specify whether it should include skillshots and AA or not.


GetIncomingDamageFrom

HealthPrediction.GetIncomingDamageFrom(unit: AIBaseClient) number - float

ArgumentTypeDescription
unitAIBaseClientUnit to get all damage from.

Get all incoming damage dealt by given unit.