Cast channel not always working
Haleth opened this issue ยท 6 comments
Certain channeled spells don't always trigger the cast bar to show. I've found that it seems to mostly happen with channeled spells that require a regular cast to activate, for example Crystal Storm (92265), Ground Pound (76590) and Flay (79922).
Well, that sounds like something which is going to be a huge hassle to debug :P. I'll read over the code and see if I can spot anything wrong.
I'm unable to re-create this with the flayers in stonecore on normal. They cast just fine and channel afterwards without any issue.
I also couldn't see anything in the current implementation that might prevent it from happening.
Strange. This is my implementation of castbar:
local Castbar = CreateFrame("StatusBar", nil, self)
Castbar:SetStatusBarTexture("")
local Spark = Castbar:CreateTexture(nil, "OVERLAY")
Spark:SetTexture"Interface\\CastingBar\\UI-CastingBar-Spark"
Spark:SetBlendMode"ADD"
Spark:SetWidth(16)
Castbar.Spark = Spark
self.Castbar = Castbar
local PostCastStart = function(Castbar, unit, spell, spellrank)
if Castbar.Text then Castbar.Text:SetText(spell) end
if self.Iconbg then
if Castbar.interrupt and unit=="target" then
self.Iconbg:SetBackdropBorderColor(1, 0, 0)
else
self.Iconbg:SetBackdropBorderColor(0, 0, 0)
end
end
end
local PostCastStop = function(Castbar, unit)
if Castbar.Text then Castbar.Text:SetText("") end
end
local PostCastStopUpdate = function(self, event, unit)
if(unit ~= self.unit) then return end
return PostCastStop(self.Castbar, unit)
end
self:RegisterEvent("UNIT_NAME_UPDATE", PostCastStopUpdate)
table.insert(self.__elements, PostCastStopUpdate)
Castbar.PostChannelStart = PostCastStart
Castbar.PostCastStart = PostCastStart
Castbar.PostCastStop = PostCastStop
Castbar.PostChannelStop = PostCastStop
Done some more testing and it apparently only happens on the target frame. Here are two screenshots. The first shows the pre-cast of Crystal Storm on Slabhide with all 3 cast bars (nameplate, target, boss) appearing fine. The second shows the channel which appears only on the nameplate and boss frame.
http://img232.imageshack.us/img232/4417/wowscrnshot041911115804.jpg
http://img263.imageshack.us/img263/3883/wowscrnshot041911115806.jpg