Fix for ticket 159.
Johnny C. Lam [09-14-12 - 22:45]
Fix for ticket 159.
OvaleAura needs to update the number of stacks of an aura if it differs
from the previous number, not just if it has increased. This fixes the
problem of BuffStacks() not showing stack counts correctly when they
decrease.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@521 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 5597898..689fbf4 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -79,7 +79,7 @@ function OvaleAura:AddAura(unitGUID, spellId, unitCaster, icon, count, debuffTyp
count = 1
end
- if not aura.ending or aura.ending < expirationTime or aura.stacks < count then
+ if not aura.ending or aura.ending < expirationTime or aura.stacks ~= count then
aura.icon = icon
aura.stacks = count
aura.debuffType = debuffType