What causes the tower to target your hero?

I am playing dota2 (100h+) and I still do not get what are the circumstances which lead to be targeted by the enemy tower.

What causes the tower to attack the hero instead of the creeps?


Solution 1:

The towers will attack enemies in this order:

  1. Closest enemy unit or hero attacking a friendly hero with auto attack
  2. Closest enemy unit or hero attacking the tower itself with auto attack
  3. Closest enemy unit or hero attacking any friendly unit with auto attack
  4. Closest enemy unit
  5. Closest enemy hero
  6. Closest enemy catapult

The tower will switch targets if:

  1. The targeted enemy unit or hero dies
  2. An enemy unit or hero targets a friendly hero
  3. An enemy hero being attacked by the tower manually attacks a friendly unit or hero (in which case, the tower will select a new target based on the above priority order).

Last one is a weird mechanic that got greatly exploited during last few months,if you get targeted by the tower and click attack button and click on friendly creep the tower will start attacking the next target as if you got out of the attack range.It is getting its popularity since it enables you to attack tower with minimum interruptions(running away+running back from the tower range).To me it looks like a major bug since it makes no sense as a mechanic.

The thing that you mostly experience during the game is that you move inside the tower range (while it is attacking another unit), and then click attack on an enemy hero, which will make the tower attack you.

More discussion here and here.

Solution 2:

There are one important method to reaggr tower. If you attacked by enemy tower and allied creeps present near the tower, you can reaggr tower by press 'A' (Attack) and click on allied creep.