Quantcast

Haste effects are multiplicative, not additive.

Johnny C. Lam [09-21-12 - 05:01]
Haste effects are multiplicative, not additive.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@532 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 8443437..bddaadc 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -191,8 +191,8 @@ function OvaleAura:UpdateAuras(unitId, unitGUID)

 	--Update player haste
 	if unitId == "player" then
-		self.spellHaste = 1 + (hateBase + hateCommune + hateSorts + hateHero + hateClasse)/100
-		self.meleeHaste = 1 + (hateBase + hateCommune + hateCaC + hateHero + hateClasse)/100
+		self.spellHaste = (1 + hateBase/100) * (1 + hateCommune/100) * (1 + hateSorts/100) * (1 + hateHero/100) * (1 + hateClasse/100)
+		self.meleeHaste = (1 + hateBase/100) * (1 + hateCommune/100) * (1 + hateCaC/100) * (1 + hateHero/100) * (1 + hateClasse/100)
 		baseDamageMultiplier = damageMultiplier
 	end