Heroes/Mechanics

Heroes are the essential main characters of Dota 2, controlled by the players. Heroes possess the three attributes, strength, agility and intelligence, from which one is their primary attribute. They are the only units capable of leveling up through the means of experience, gaining additional attribute points, and ability points which can be spend to level up abilities or gain even more attributes. Heroes are also able to spend gold to purchase items.

Spawning
All heroes spawn once at the beginning of the match after the picking phase, but only if the player locked in their pick. The player can also force their locked in hero to spawn during the picking phase by pressing, although they still have to wait for the picking phase to finish in order to start taking any actions with the hero. An advantage of this forced spawning is that the hero gets loaded into the match earlier, instead of simultaneously with all other players' heroes, which reduces possible loading lags. A disadvantage to this is that after a hero has been spawned, its equipped cosmetic items cannot be changed.

Killing and dying
Killing a hero grants players much bigger bonuses than killing almost any other unit. Heroes grant scaling gold based on their level and their current killing streak, and scaling experience based on their level. Heroes also gain killing streaks upon killing heroes. A killing streak increases the hero's bounty, increasing its value for the enemy. A killing streak starts with 3 hero kills without any deaths in-between, and is capped at 10 kills. A streak longer than 10 has the same worth as a 10 killing streak. A hero's current streak is globally announced whenever it makes a kill.

The very first hero kill of the match, called the announcer 1stblood 01.mp3 First Blood!, also grants an additional gold 150 to the killing hero. A hero's bounty uses the following formula: 100 + streak value + (hero level × 9.9) (+ first blood)  A hero is only granted this gold if it actually killed the enemy (i.e. did killing blow). Otherwise, the hero either only gets assist gold and experience, or no gold and experience at all, based on how much time passed since the last time it damaged the target, and how far away the hero is if too much time passed.

Killing a hero also grants experience based on the hero's level. Up to level 5 the experience bounty grows by 20 per level, starting at 100 on level 1 and reaching 180 on level 5. From level 6 and onward, each level increases the experience bounty by 100, starting with 280 on level 6, reaching 2180 on level 25.

Killing multiple heroes in quick succession also results in a multi-kill. However, unlike a killing streak, a multi-kill has no gameplay influence and merely servers for aesthetics. Multi-kills do not require the hero to stay alive in-between the kills, if the hero dies, the multi-kill can still continue. A multi-kill occurs when killing a second hero within 18 seconds of the first kill. The multi-kill can be extended by killing even more heroes, all within 18 seconds of the previous kill. Like a killing streak, a multi-kill has no limit, but is "soft-capped" at 5, repeating the same line for 5 and more kills. The multi-kill stages are:

A hero's death has a much bigger impact than the death of almost any other unit. When a hero dies, it stays dead for an amount of time based on its level and the player loses gold based on the hero's level, losing 30 gold per each level they have. There is no way to directly reduce or avoid this gold loss. However, only unreliable gold is lost, reliable gold is not lost on death, meaning if a hero has almost no unreliable gold but a lot of reliable gold, dying does not cost as much as it would with much unreliable gold and little reliable gold. Dying also results in the loss of any ongoing killing streak the hero has. As mentioned before, a death also grants gold and experience to nearby enemies and the killer. However, gold and experience is only granted to the enemy, and streaks are only lost when dying to an enemy. Dying to neutral creeps, or getting denied by an ally or oneself neither grants the enemy any bounty, nor ends the current killing streak. Heroes do not lose experience on death.

A table showing how much gold a hero grants and loses on death can be found here. A table showing how much experience a hero grants on death can be found here.

Respawning
After the first spawn, a hero does not spawn again. However, what heroes do instead is respawning. After a hero dies, it comes back to life after an amount of time based on its level. Upon respawning, the hero gets instantly moved to the fountain area, with its health and mana reset. Cooldowns are unaffected and buffs and debuffs are not cleared upon respawning.

Several abilities and items are able to affect the respawn timer and the respawn location.

The respawn time uses the following formula: 5 + (3.8 × hero level). When affected by respawn time changing effects, the Buyback penalty is applied first, followed by 's increment, followed by 's reduction, and lastly, 's reduction. and the always set the respawn timer to their values, disregarding any reducing or increasing effect.

The respawn times can be seen in the following table.

Buyback
While dead, the player has the option to use "buyback", spending money in order to instantly respawn at the fountain. However, the buyback ability has a long cooldown of 420 seconds and has a scaling gold cost. Buyback takes away from reliable gold first, which allows the player to ensure a buyback by accumulating enough reliable gold which is not lost on death. It has a base cost of 100 gold, a scaling extra cost based on the hero's level and a scaling extra cost based on the current game time, using the following formula: 100 + (hero level × hero level × 1.5) + (game time in seconds × 0.25) This means, every 4 seconds the cost increases by 1 gold, which translates to 15 gold per minute. This does not count the preparing phase. It starts increases together with the first creep wave spawn.

Besides the potentially high gold cost, buyback comes with a couple of more penalties. Buying back has the following negative effects on the hero:
 * 25% of the remaining respawn time of that death is added up to the next death's respawn time, meaning the earlier buyback is used on this death, the longer the next death will be.
 * The hero receives a debuff which reduces all gold income by 60%. This debuff's duration is based on how long the hero would still have been dead if buyback was not used.

Due to the high cooldown, high gold cost and heavy penalties, using buyback should be a thoroughly thought through action, as it can backfire and cause more harm than good. Scenarios where a buyback may be a good idea is when a crucial team fight starts while one is dead, in order to join the fight. Another crucial moment is when the base needs defending, or when having died during a team fight which the team still won and is going for a final push. Buyback should generally not be used to skip death timing to farm, as the gold penalty is usually too big to make it ever worth it. Also, the death time gets partially added on the next death. Especially on high levels, an early buyback can easily to a 2 minutes or longer death time on the next death.

A buyback can be prevented with 's, but only when upgraded with. An upgraded Reaper's Scythe disables the target's buyback if it kills it. Besides Reaper's Scythe, a buyback cannot be interfered with in any way, making cooldown, lack of gold and an upgraded Reaper's Scythe the only things able to prevent a buyback.

Displays The buyback button is only accessible while dead. It is located on the right side of the death bar. The death bar replaces the HP bar while the hero is dead and shows the respawn time. On its right, the Buyback button is located. The button has 3 different statuses: Ready, not enough gold, and on cooldown. When ready, the button is grey and heightened. On the button, it reads "BUYBACK" in white, and it also displays the current buyback cost. When having not enough gold, the button is red and pushed back. The "BUYBACK" text turns red, and it still displays the current cost. When on cooldown, it looks like when having not enough gold, but the gold cost is replaced by a cooldown timer, showing the remaining cooldown.

The buyback status can also be seen by allies, below the hero icon at the top bar. If the flag has a golden border, that hero has buyback ready and can use it. If there is no golden border, the player has either not enough gold, or it is on cooldown. The scythe appears when the buyback gets disabled by. Like the death bar, this is only visible while dead.

Lastly, the buyback status is also displayed in the gold tooltip, which can be accessed by hovering the mouse over the gold. It displays the currently required amount of gold for the buyback, its cooldown status, and how much gold the player still needs for the buyback, or how much surplus gold they have.

When a hero buys back, a string sound plays ( Buy back.mp3 buyback sound) which is audible to everyone, and a gold symbol appears below the hero's top bar icon, which stays there for several seconds, visible to everyone. The hero also responds to the buyback. Unlike their responses on a regular respawn, which are only audible to the player, a buyback response is audible to everyone. This means no matter what setting a player uses, there is always a cue revealing that a hero bought back.

Leveling


Every hero starts off at level 1 and can level up 24 times, up to level 25. Each new level grants the hero some attribute points (different values for each hero) and an ability point which they can use to level up abilities or, which grants them more attributes. Some abilities and abilities levels require the hero to be on certain levels. Most abilities have 4 abilities and can be leveled on level 1, 3, 5 and 7. Attribute Bonus can also be leveled on level 1 and then on every 2 levels, up to 10 times. Ultimates usually have 3 levels and can usually be leveled up at level 6/11/16. The exceptions are Meepo, who requires different levels for his ultimate, and Invoker, who has unique different ability scheme.

Heroes level up through the means of experience, which is gained by killing enemy units, or by being within proximity of an enemy unit while an ally kills that enemy unit. The required distance to gain experience is 1300 if the kill is not done by the hero, or if the killed unit was not a hero. Killing other heroes always grants experience, regardless of distance. When multiple heroes are within range of an enemy unit which gets killed, the experience gets evenly split among the heroes. This includes every single clone of Meepo, but excludes Arc Warden's Tempest Double. If a hero is already on max level, it still gets its share of experience when within range, even though it has no use for it anymore, causing it to get wasted. A hero cannot gain and does not get its share of experience while dead.

A level up is indicated by a visual effect, an angled yellow light beam from the sky shining on the hero. This light beam is visible to everyone. A sound effect is also played, which is only audible to the player.

Ability interactions
Just like any other unit type, the hero unit type causes several different interactions with abilities. Some abilities cannot affect heroes at all, while others have altered effects or different values when used on heroes.

The following abilities cannot be cast on, or cannot affect heroes:

On the other side, these abilities can only target or affect heroes:

The following abilities interact differently with heroes: