HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Calculate damage reduction

08-14-2006, 06:14 PM#1
wing87
Hi, im writing a program to help balance maps but well got a question here.

How does the formula look that gets the % damage reduction from the defence in wc3?

tnx alot.
08-14-2006, 06:16 PM#2
Daelin
Taken directly from my armor detection system. Formula from blizzard official site tweaked a little into programming.

Positive Armor: damage*(1-(((armor)*0.06)/(1+0.06*(armor))))
Negative Armor: damage*(2-Pow(0.94,(-armor)))

~Daelin
08-14-2006, 06:20 PM#3
wing87
Tnx alot.
08-14-2006, 07:23 PM#4
wing87
It works good but 1 question is the hero damage reduction calculated in some other way?

normal unit with -2 armor = -11%
hero with -2 armor = -6% (in wc3 atleast)