Use raw EHP when calculating raw EHP with dodge

This commit is contained in:
Andrew Tomaka 2013-04-09 22:44:25 -04:00
parent 771541dcf6
commit 06875717cd

View file

@ -57,7 +57,7 @@ class Barbarian extends DiabloClass {
$net_no_dodge = $raw_no_dodge;
}
$raw_ehp_dodge = $net_no_dodge / (1 - $this->stats->getStat('Dodge Chance'));
$raw_ehp_dodge = $raw_no_dodge / (1 - $this->stats->getStat('Dodge Chance'));
$net_ehp_dodge = ($raw_ehp_dodge - $net_no_dodge) * $net_mod + $net_no_dodge;
$final_ehp = $net_ehp_dodge * (1 + ($this->stats->getStat('Melee Damage Reduction')