Skip to content
Laurie Clark-Michalek edited this page Aug 26, 2013 · 3 revisions

m_iLevel

  • The level of the ability

m_fCooldown

The game time that the ability either will come off cooldown or did come off cooldown. See GameRules for getting the current game time, which can be then compared to the cooldown property to see if the ability is on cooldown. From the tarrasque source:

@property
def is_on_cooldown(self):
    # Get the current game time from the GameRules object
    current_time = self.stream_binding.rules.game_time
    # If the cooldown time is in the future, then this ability is on cooldown
    return current_time <= self.off_cooldown_time

This property is not reset once the cooldown is over, and at the start of the game will be set to the game time that the hero is loaded into the game.

m_flCooldownLength

The length of the cooldown for the ability if it were cast in this tick.

m_iManaCost

The mana cost of the ability. 0 if the ability has not been learned

m_iCastRange

The distance around the player which the ability can be cast.