Hero game state.

Hierarchy

  • Hero

Properties

aghanimsScepter: boolean

If the hero has the Aghnanims scepter upgrade.

aghanimsShard: boolean

If the hero has the Aghnanims shard upgrade.

alive: boolean

If the hero is currently alive.

attributesLevel: number

How many times attribute upgrade has been applied.

break: boolean

If the hero has break applied.

buybackCooldown: number

Number of seconds before buyback is enabled again.

buybackCost: number

Total gold needed for buyback.

disarmed: boolean

If the hero is disarmed.

hasDebuff: boolean

If the hero has a debuff applied.

health: number

Current health.

healthPercent: number

Percentage of current health against max health.

hexed: boolean

If the hero is hexed.

id: number

Hero id.

level: number
magicImmune: boolean

If the hero is magicImmune.

mana: number

Current mana.

manaPercent: number

Percentage of current mana against max mana.

maxHealth: number

Max health.

maxMana: number

Max mana.

muted: boolean

If the hero is muted.

name: string

Hero name.

respawnSeconds: number

Number of seconds before the hero respawns, 0 if the hero is alive.

selectedUnit: boolean

If the hero is selected is not.

silenced: boolean

If the hero is silenced.

smoked: boolean

If the hero is smoked.

stunned: boolean

If the hero is stunned.

talents: boolean[]

Talent tree expressed as an array.

xPos: number

Current x position on the map.

xp: number

Current xp.

yPos: number

Current x position on the map.

Generated using TypeDoc