patch
Steven Jackson [08-26-14 - 03:19]
diff --git a/Interface/AddOns/SVUI/libs/oUF/elements/castbar.lua b/Interface/AddOns/SVUI/libs/oUF/elements/castbar.lua
index c6b3a85..2cf77a2 100644
--- a/Interface/AddOns/SVUI/libs/oUF/elements/castbar.lua
+++ b/Interface/AddOns/SVUI/libs/oUF/elements/castbar.lua
@@ -179,7 +179,7 @@ local UNIT_SPELLCAST_DELAYED = function(self, event, unit, spellname, _, castid)
local duration = GetTime() - (startTime / 1000)
if(duration < 0) then duration = 0 end
-
+ castbar.previous = name
castbar.delay = castbar.delay + castbar.duration - duration
castbar.duration = duration
@@ -236,6 +236,7 @@ local UNIT_SPELLCAST_CHANNEL_START = function(self, event, unit, spellname)
local max = (endTime - startTime)
local duration = endTime - GetTime()
+ castbar.previous = name
castbar.duration = duration
castbar.max = max
castbar.delay = 0
@@ -290,6 +291,7 @@ local UNIT_SPELLCAST_CHANNEL_UPDATE = function(self, event, unit, spellname)
return
end
+ castbar.previous = name
local duration = (endTime / 1000) - GetTime()
local startDelay = castbar.startTime - startTime / 1000
castbar.startTime = startTime / 1000
diff --git a/Interface/AddOns/SVUI/packages/unit/elements/castbar.lua b/Interface/AddOns/SVUI/packages/unit/elements/castbar.lua
index abbd830..da4cdfb 100644
--- a/Interface/AddOns/SVUI/packages/unit/elements/castbar.lua
+++ b/Interface/AddOns/SVUI/packages/unit/elements/castbar.lua
@@ -379,6 +379,11 @@ local CustomCastBarUpdate = function(self, elapsed)
if(duration <= 0) then
self.channeling = nil
+ self.previous = nil
+ self.casting = nil
+ self.tradeskill = nil
+ self.recipecount = nil
+ self.maxrecipe = nil
self:Hide()
if(self.PostChannelStop) then self:PostChannelStop(self.__owner.unit) end
diff --git a/Interface/AddOns/SVUI_LogOMatic/SVUI_LogOMatic.lua b/Interface/AddOns/SVUI_LogOMatic/SVUI_LogOMatic.lua
index fb0159b..92a5aa8 100644
--- a/Interface/AddOns/SVUI_LogOMatic/SVUI_LogOMatic.lua
+++ b/Interface/AddOns/SVUI_LogOMatic/SVUI_LogOMatic.lua
@@ -38,8 +38,7 @@ GET ADDON DATA
##########################################################
]]--
local SVUIAddOnName, PLUGIN = ...;
-local SuperVillain, L = unpack(SVUI);
-local CONFIGS = SuperVillain.Configs
+local SuperVillain, L = unpack(SVUI)
local NewHook = hooksecurefunc;
local SVUILogEventHandler = CreateFrame("Frame", nil)
local version = GetAddOnMetadata(..., "Version");
@@ -365,7 +364,7 @@ local function LoadLogOMatic()
NewHook(CHAT, "ReLoad", PLUGIN.AppendChatFunctions);
end
-CONFIGS["SVLogs"] = {
+SuperVillain.Configs["SVLogs"] = {
["enable"] = true,
["saveChats"] = false
}