# [Solved]Wc3 or WE Bugg?

Status
Not open for further replies.

#### Vunjo

Hosted Project: SC
Level 14
I saw a bugg, which I cannot describe as a warcraft 3 bugg, or world editor bugg.

When unit has as much as armor needed to reach 100% damage reduction, the unit still recieves small amount of damage. Anyone knows why?

#### Pharaoh_

Level 40
A certain portion of damage cannot be nullified. You will need to use a damage detection system, which detects physical damage (e.g. RisingDusk's) and use a timer of 0.00 seconds expiration to heal the unit back.

#### Maker

Level 37
Armor reduction equation is (armor*0.06)/((armor*0.06)+1).

For example with 5 armor: 5*0.06/((5*0.06)+1) = 0,2307.. => 23%.

Then how much armor do we need to get 100% reduction? 100% reduction equals 1 on the right side.

x*0.06/((x*0.06)+1) = 1
<=> 0.06x = 1 + 0.06x
<=> 0 = 1

That can never be true. No matter how much armor you have, the reduction won't be 100%.

#### Zwiebelchen

Hosted Project GR
Level 35
Armor reduction equation is (armor*0.06)/((armor*0.06)+1).

For example with 5 armor: 5*0.06/((5*0.06)+1) = 0,2307.. => 23%.

Then how much armor do we need to get 100% reduction? 100% reduction equals 1 on the right side.

x*0.06/((x*0.06)+1) = 1
<=> 0.06x = 1 + 0.06x
<=> 0 = 1

That can never be true. No matter how much armor you have, the reduction won't be 100%.
Just wanted to add: WC3 rounds the armor value. That's why it shows 100%, although its just 99,x%

#### Dr Super Good

Spell Reviewer
Level 64
The minimum damage a unit can receive from any damage source is 1.
Even if an attack deals 1 damage to a unit with stupidly large armor it will still take atleast 1 damage.

This however might not be obvious as the damage received is calculated before armor/damage type modifiers. Thus if a damage type deals only 50% to a certain armor type the minimum damage that attack can deal is 0.5. Likewise attack with 200% damage has a minimum damage of 2.

Also be aware that error in the maths used to calculate damage received might introduce errors (due to rounding the game has to preform internally at certain steps).

With a damage reduction of very close to 100% you will obviously be limited by this lowbound on damage received.

#### Vunjo

Hosted Project: SC
Level 14
Thank you guys. +Rep.

Status
Not open for further replies.

Replies
3
Views
1K
Replies
16
Views
5K
[General] Damage Reduction
Replies
5
Views
451
Replies
2
Views
2K