Skip to content

ContextualConditionCharacterTimeToLive

16.20

Class Documentation

Edit documentation

A character subcondition that compares the estimated time to live of the unit that the situation belongs to with mTargetTimeToLive.

The estimate is the number of seconds until the owner dies if the enemies near it keep attacking. The client recomputes it once per second from the alive enemies within 1000 units of the owner. It sums their physical and their magic damage per second. The owner's health, scaled by 1 + armor / 100 against physical damage and by 1 + magic resist / 100 against magic damage, divided by that damage gives the estimate. The estimate is capped at 30 seconds. With no enemy in range it is 30.

The condition ignores the unit that its parent condition selects. Under ContextualConditionCharacter and ContextualConditionAnyOtherHero it still tests the owner.

Properties

mTargetTimeToLive

F32 = 5
Edit documentation

The time, in seconds, that the estimate is compared with.