Auto Last Hit
Automatic last-hitting and denying of units: the script attacks creeps at the right moment to secure the last hit and to deny your own dying creeps to the enemy.
Location in the menuโ
Utility (ะฃัะธะปะธัั) โ Auto Last Hit (ะะฒัะพ ะะฐััั
ะธั)
What it doesโ
The script takes control of the units you select and automatically secures last hits (finishing off enemy creeps) and performs denies (finishing off your own dying creeps), striking exactly at the moment the attack is guaranteed to kill the target.
How it activatesโ
By itself the script is passive โ it activates only on the units you have selected and only while you hold or toggle the assigned key:
- State must be on (off by default).
- A key is assigned in the Binds section:
- Hold key โ auto last-hitting works while the key is held; release it and control returns to you.
- Toggle key โ a press enables/disables the last-hit mode for the selected units.
- Select a unit (or several) and hold/press the key. The script works with multiple selected controllable units at once (hero, illusions, Spirit Bear, controlled creeps, etc.).
Last-hit logicโ
For each potential target the script calculates the predicted health at the moment your attack lands and attacks only if that strike will kill it:
- the full attack delay is taken into account โ the current animation, turn time, travel to the target, and for ranged units the projectile flight time to the target as well;
- incoming damage from other units and projectiles is taken into account (tracked separately), as is the target's HP regeneration โ so the script doesn't strike a creep that will be killed anyway, and doesn't "miss" a target that will manage to regen;
- when choosing a target, preference is given to creeps with the lowest remaining HP; for deny targets (your own) the priority is lower so that enemy last hits are secured first;
- there is built-in protection against "jitter" in the decision (attack/don't attack) at the edge of a kill โ the decision must be confirmed for several ticks in a row before it changes.
Deny targets: your own unit becomes a kill candidate only when its HP drops below 50%. Enemy units are always a target (by attack availability).
Which units are processed: lane creeps, siege (catapult) creeps, heroes and towers. Undying zombies and buildings other than towers are not processed.
Behavior between last hitsโ
While the mode is active and there is nothing to last-hit, the selected units move toward the mouse cursor โ so you keep leading them down the lane without losing control. As soon as a last-hittable target appears, the script switches the unit to attack on its own.
Attack rangeโ
When the Show attack range option is enabled, a circle of the attack range (accounting for the "bonus range" from the unit's settings) is drawn around the controlled units in the chosen color.
Settingsโ
Mainโ
| Menu item | Type | Default | Description |
|---|---|---|---|
| State | Toggle | Off | Master switch of the script. |
| Show attack range | Toggle | On | Draws an attack-range circle around the controlled units while last-hit mode is active. |
| Range color | Color picker | Purple | Color of the attack-range circle. |
Bindsโ
| Menu item | Type | Default | Description |
|---|---|---|---|
| Hold key | Hotkey | Not set | Auto last-hitting works while the key is held. |
| Toggle key | Hotkey | Not set | A press enables/disables auto last-hitting for the selected units. |
Unitsโ
A section with individual settings for each controllable unit. Entries appear automatically once you are in a game/lobby with your hero; until then the hint "Need hero & lobby" is shown. Settings are configured separately for each unit type.
| Menu item | Type | Default | Range | Description |
|---|---|---|---|---|
| Last hit | Toggle | On | โ | Allows this unit to last-hit enemy creeps. |
| Deny | Toggle | On | โ | Allows this unit to deny its own dying creeps (when their HP is < 50%). |
| Bonus range | Slider | 200 | 0โ800 | Additional distance within which the unit "sees" and attacks creeps beyond its attack range. |