Dota2-Gameplay icon indicating copy to clipboard operation
Dota2-Gameplay copied to clipboard

Whirling Death debuff expiration gives back more HP than it took away.

Open Megionate opened this issue 2 years ago • 2 comments

Ability name

Whirling Death

Description

Whirling death has been giving back too much HP to STR heroes affected by its stat loss, possibly since Dota 2 Reborn came out. This is due to how the spell behaves when removing strength.

Spell Behavior

When a STR hero gets hit by Whirling Death, the hero loses 22 current and max HP per point of STR lost, and then gets damaged by the spell.

When the debuff expires, however, the STR hero first receives 19¹ current and max HP per point of STR regained, and then actually gets their STR back. While the former is done by setting health, the latter isn't. This causes the hero to keep the same HP% when they get their STR back, which will in practice also increase their current HP even further.

Practical Example

A numerical example of this would be the following situation (assume HP regen is 0): -A half health Spirit Breaker with 40 STR (500/1000 HP) gets hit by a LVL1 Whirling Death. -Spirit Breaker loses 6 STR to the Whirling Death debuff. This reduces his current and max HP by 6 x 22 = 132, putting him at 368/868 HP. -Whirling Death deals its damage, which is 85 at LVL1. 368 - 85 = 283. Spirit Breaker is now at 283/868 HP.

Whirling Death's debuff expires. -Spirit Breaker first regains 19 current HP per lost point of STR, in this case 19 x 6 = 114. This puts him at 397/868 HP. -Spirit Breaker now gets his STR back. This keeps his HP% the same. His new HP will be (397/868) * 1000 = ~457/1000 HP. This means his current HP increased by a further ~60.

This ultimately caused Spirit Breaker to regain a total of ~174 current HP, while only having lost 132 HP to Whirling Death's debuff. If his HP% was greater when the debuff wore off, he would have gotten back more HP in total.

Possible Fix

A fix for this would be to make the game resolve Whirling Death's expiration as follows: -First restore the hero's strength while keeping their current HP the same. This is the same way Undying's Decay works. e.g. Using above's scenario, Spirit Breaker would go from 283/868 HP to 283/1000 HP.

-Then make the hero regain 22 current HP per point of strength lost by way of setting health. e.g. That same Spirit Breaker would then go from 283/1000 HP to 283 + 22*6 = 415/1000 HP.

This ensures that the hero would always receive the same amount of HP back that they lost.

¹ According to dota wiki's, this value is 19. I am not entirely sure whether this is actually the case, but whether its 19 or 22 does not change the point that I make.

Example Match ID (and possibly Timestamp)

7838177328, Tiny in mid.

Megionate avatar Jul 12 '24 13:07 Megionate

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Jul 23 '25 16:07 github-actions[bot]

This issue was closed because it has been inactive for 90 days since being marked as stale.

github-actions[bot] avatar Nov 04 '25 17:11 github-actions[bot]