Remove unset (nil) variable that doesn't change the return value.
Johnny C. Lam [12-09-13 - 02:15]
Remove unset (nil) variable that doesn't change the return value.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1249 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 1b9b821..5ff8c63 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -752,7 +752,7 @@ do
for auraId, whoseTable in pairs(OvaleAura.aura[guid]) do
for casterGUID in pairs(whoseTable) do
local aura = GetStateAura(state, guid, auraId, casterGUID)
- if state:IsActiveAura(aura, now) and aura.filter == filter and not aura.state then
+ if state:IsActiveAura(aura) and aura.filter == filter and not aura.state then
local name = aura.name or "Unknown spell"
tinsert(array, name .. ": " .. auraId)
end
@@ -762,7 +762,7 @@ do
if state.aura[guid] then
for auraId, whoseTable in pairs(state.aura[guid]) do
for casterGUID, aura in pairs(whoseTable) do
- if state:IsActiveAura(aura, now) and aura.filter == filter then
+ if state:IsActiveAura(aura) and aura.filter == filter then
local name = aura.name or "Unknown spell"
tinsert(array, name .. ": " .. auraId)
end