# Heal on damage taken [Speculation]

So i took at look on the wikipedia to check on damage calculations and how it works, in an attempt to calculate the sweet spot between protection and health.

According to the wiki;

Damage Mitigated = Damage Dealt * ((Protection Amount - Penetration Amount) / (Max Health + Protection Amount - Penetration Amount))

For easier overview lets convert that to

Damage Mitigated = A * ((B - C) / (D + B - C))

A = Damage dealt
B = Protection amount
C = Penetration amount
D = Max Health

Usually the calculation runs fine, as an example lets says
A = Damage dealt = 500
B = Protection amount = 100
C = Penetration amount = 0
D = Max Health = 500
G = Reduced Damage Taken = 0%
X = Damage Mitigated

Damage Mitigated = 500 * ((100 - 0) / (500 + 100 - 0))
Damage Mitigated = 500 * (100 / 600)
Damage Mitigated = 500 * 0,167
Damage Mitigated =83,33

Now the following calculation says;

Damage Taken = (Damage Received from all sources - Damage Mitigated) x (Reduced Damage Taken)

• Am i already wrong here, by saying that; Damage Received from all sources = Damage dealt = A
• Please note that i made the damage reduction into; (1-Reduced Damage Taken); to avoid multiplying with 0

Damage Taken = (A - X) * (1-G)
Damage Taken = (500 - 83,33) * (1-0)
Damage Taken = 416,67 * 1
Damage Taken = 416,67

Now this calc checks out and i would end up with 83,33 Health (Max Health - Damage taken) (500-416,67=83,33)

But if we experiment and tweak the numbers a bit, let’s say to the following values;
A = Damage dealt = 500
B = Protection amount = 100
C = Penetration amount = 350
D = Max Health = 200
G = Reduced Damage Taken = 0%
X = Damage Mitigated

Damage Mitigated = A * ((B - C) / (D + B - C))
Damage Mitigated = 500 * ((100 - 350) / (200 + 100 - 350))
Damage Mitigated = 500 * (-250 / -50)
Damage Mitigated = 500 * 5
Damage Mitigated =2500

Damage Taken = (A - X) * (1-G)
Damage Taken = (500 - 2500) * (1-0)
Damage Taken = -2000 * 1
Damage Taken = -2000

So we would heal 2000 HP on a hit? Or am i doing something terribly wrong here?
Basically from what i can see, is that if the following statement is true, we get this negative hit damage;

• Penetration amount > (Protection amount + Max health)

Where did i go wrong?

Problem here is that penetration is more than sum of health and protection. Calculation in wiki is wrong in not considering such a case. I asked this to devs in Discord channel and will update wiki if I get an answer. My guess would be that such hits would kill you for sure.

2 Likes

Just adding this response i got from the #ask-the-devs channel on Discord.

Full message for context:

1 Like