Update DH EHPScore to follow new rules

This commit is contained in:
Andrew Tomaka 2013-04-09 22:53:12 -04:00
parent dd173978ea
commit 9c42d150e0

View file

@ -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) {