Plug some global variable leaks.
Johnny C. Lam [11-30-12 - 04:47]
Plug some global variable leaks.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@651 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 4aae0a8..597c2c9 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -365,7 +365,7 @@ function OvaleAura:GetDamageMultiplier(spellId)
local si = OvaleData.spellInfo[spellId]
if si and si.damageAura then
self:UpdateAuras("player", self.playerGUID)
- auraTable = self.aura[self.playerGUID]
+ local auraTable = self.aura[self.playerGUID]
if auraTable then
for filter, filterInfo in pairs(si.damageAura) do
for auraSpellId, multiplier in pairs(filterInfo) do
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index 3109512..6cb8e7e 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -189,7 +189,6 @@ local function GetRuneCount(type, death)
local rune = OvaleState.state.rune[i]
if rune and (rune.type == type or (rune.type == 4 and death==1)) then
if rune.cd > OvaleState.currentTime then
- onCd = true
if not atTime or rune.cd < atTime then
atTime = rune.cd
rate = 1/rune.duration