Update DH EHPScore to follow new rules
This commit is contained in:
parent
dd173978ea
commit
9c42d150e0
1 changed files with 5 additions and 0 deletions
|
@ -5,8 +5,13 @@ class DemonHunter extends DiabloClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
function EHPScore() {
|
function EHPScore() {
|
||||||
|
$this->calculateEHP();
|
||||||
$ehp = $this->stats->getStat('EHP Unbuffed');
|
$ehp = $this->stats->getStat('EHP Unbuffed');
|
||||||
|
|
||||||
|
if($this->type == 'pvp') {
|
||||||
|
return $ehp / 10000;
|
||||||
|
}
|
||||||
|
|
||||||
if($ehp <= 500000) {
|
if($ehp <= 500000) {
|
||||||
return $ehp / 10000;
|
return $ehp / 10000;
|
||||||
} elseif(500000 < $ehp && $ehp <= 1000000) {
|
} elseif(500000 < $ehp && $ehp <= 1000000) {
|
||||||
|
|
Loading…
Reference in a new issue