From 98868172467334c6a5bf0960391642354a14a86e Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 8 Apr 2013 20:30:49 -0400 Subject: [PATCH] Update lifesteal coefficient based on attack speed --- libs/demonhunter.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/demonhunter.php b/libs/demonhunter.php index 0e3265a..0a5d137 100644 --- a/libs/demonhunter.php +++ b/libs/demonhunter.php @@ -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') *