Update lifesteal coefficient based on attack speed

This commit is contained in:
Andrew Tomaka 2013-04-08 20:30:49 -04:00
parent 3002330133
commit 9886817246

View file

@ -19,8 +19,14 @@ class DemonHunter extends DiabloClass {
} }
function sustainScore() { function sustainScore() {
if($this->stats->getStat('Attacks per Second') > 2) {
$lsCoefficient = .1;
} else {
$lsCoefficient = .2;
}
$effectiveLs = $this->stats->getStat('DPS Unbuffed') * $effectiveLs = $this->stats->getStat('DPS Unbuffed') *
$this->stats->getStat('Life Steal') * .2; $this->stats->getStat('Life Steal') * $lsCoefficient;
$mitigation = $this->stats->getStat('EHP Unbuffed') / $this->stats->getStat('Life'); $mitigation = $this->stats->getStat('EHP Unbuffed') / $this->stats->getStat('Life');
return 1 + $mitigation * ($this->stats->getStat('Life on Hit') * return 1 + $mitigation * ($this->stats->getStat('Life on Hit') *