Quantcast

Don't account for stacking damage buffs for now.

Johnny C. Lam [04-30-13 - 16:33]
Don't account for stacking damage buffs for now.

Back out part of r814 that multiplied the damage increase by the stack
size.  There are very few stacking damage buffs, and those can be handled
explicitly for now until Ovale gains a way to describe a stacking versus a
non-stacking buff.

This fixes the result of the Damage() and LastSpellEstimatedDamage()
conditions.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@912 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index f7d95ee..e26d2f6 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -516,7 +516,7 @@ function OvaleAura:GetDamageMultiplier(spellId)
 		local count = select(3, self:GetAuraByGUID(playerGUID, auraSpellId, filter, nil, "player"))
 		if count and count > 0 then
 			-- Try to account for a stacking aura.
-			multiplier = 1 + (multiplier - 1) * count
+			-- multiplier = 1 + (multiplier - 1) * count
 			damageMultiplier = damageMultiplier * multiplier
 		end
 	end
@@ -530,7 +530,7 @@ function OvaleAura:GetDamageMultiplier(spellId)
 					count = select(3, self:GetAuraByGUID(playerGUID, auraSpellId, filter, nil, "player"))
 					if count and count > 0 then
 						-- Try to account for a stacking aura.
-						multiplier = 1 + (multiplier - 1) * count
+						-- multiplier = 1 + (multiplier - 1) * count
 						damageMultiplier = damageMultiplier * multiplier
 					end
 				end