blah
yaroot [11-25-10 - 12:05]
diff --git a/core.lua b/core.lua
index 6eb7fe5..7120297 100644
--- a/core.lua
+++ b/core.lua
@@ -1,9 +1,6 @@
local L = setmetatable({}, {__index=function(t, i) return i end})
local SATimer = LibStub('AceAddon-3.0'):NewAddon('SATimer')
---local L = setmetatable(GetLocale() == 'zhCN' and {
---} or GetLocale() == 'zhTW' and {
---}, {__index = function(t, i) return i end})
local db
local defaults = {
@@ -12,7 +9,6 @@ local defaults = {
},
}
-
SATimer.all = {}
SATimer.unused = {}
SATimer.using = {}
@@ -40,7 +36,6 @@ function SATimer:SPELL_ACTIVATION_OVERLAY_SHOW(spellID, texture, position, scale
local endTime = self:GetTimeLeft(spellID)
if(endTime) then
- -- XXX
if(not f) then
f = self:GetUnused()
self:SetUsing(f)
@@ -79,6 +74,7 @@ do
rawset(t, i, n)
return n
end})
+
function SATimer:GetTimeLeft(spellID)
local spell = _SPELLS[spellID]
if(not spell) then return end