Life steal on LoH do not count for PvP
This commit is contained in:
parent
8eb7b206be
commit
5c1e26e390
1 changed files with 10 additions and 2 deletions
|
@ -25,11 +25,19 @@ class DemonHunter extends DiabloClass {
|
|||
$lsCoefficient = .2;
|
||||
}
|
||||
|
||||
$ls = $this->stats->getStat('Life Steal');
|
||||
$loh = $this->stats->getStat('Life on Hit');
|
||||
|
||||
if($this->type == 'pvp') {
|
||||
$ls = 0;
|
||||
$loh = 0;
|
||||
}
|
||||
|
||||
$effectiveLs = $this->stats->getStat('DPS Unbuffed') *
|
||||
$this->stats->getStat('Life Steal') * $lsCoefficient;
|
||||
$ls * $lsCoefficient;
|
||||
$mitigation = $this->stats->getStat('EHP Unbuffed') / $this->stats->getStat('Life');
|
||||
|
||||
return 1 + $mitigation * ($this->stats->getStat('Life on Hit') *
|
||||
return 1 + $mitigation * ($loh *
|
||||
($this->stats->getStat('Attacks per Second') + 1) / 2 +
|
||||
$this->stats->getStat('Life per Second') + $effectiveLs) /
|
||||
($this->stats->getStat('Life') * $this->EHPScore() * 10000 /
|
||||
|
|
Loading…
Reference in a new issue