1
0
Fork 0

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
1 changed files with 7 additions and 1 deletions

View File

@ -19,8 +19,14 @@ class DemonHunter extends DiabloClass {
}
function sustainScore() {
if($this->stats->getStat('Attacks per Second') > 2) {
$lsCoefficient = .1;
} else {
$lsCoefficient = .2;
}
$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');
return 1 + $mitigation * ($this->stats->getStat('Life on Hit') *