mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed the non-interruptible check to work for the target cast bar's TargetChanged event
- fixed :Redraw from causing a cast bar to draw gray and stop updating (could happen if spell interruptibility changed mid-cast)
This commit is contained in:
@ -247,6 +247,14 @@ function IceCastBar.prototype:StopBar()
|
|||||||
self.frame:SetScript("OnUpdate", nil)
|
self.frame:SetScript("OnUpdate", nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- make sure that our custom OnUpdate is restored whenever a Redraw happens
|
||||||
|
function IceCastBar.prototype:Redraw()
|
||||||
|
IceCastBar.super.prototype.Redraw(self)
|
||||||
|
|
||||||
|
if self.action ~= IceCastBar.Actions.None then
|
||||||
|
self.frame:SetScript("OnUpdate", function() self:OnUpdate() end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function IceCastBar.prototype:GetShortRank(rank)
|
function IceCastBar.prototype:GetShortRank(rank)
|
||||||
if (rank) then
|
if (rank) then
|
||||||
|
@ -67,7 +67,7 @@ function TargetCast.prototype:TargetChanged(unit)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local spell, _, _, _, _, _, _, notInterruptibleCast = UnitCastingInfo(self.unit)
|
local spell, _, _, _, _, _, _, _, notInterruptibleCast = UnitCastingInfo(self.unit)
|
||||||
if (spell) then
|
if (spell) then
|
||||||
self.notInterruptible = notInterruptibleCast
|
self.notInterruptible = notInterruptibleCast
|
||||||
self:StartBar(IceCastBar.Actions.Cast)
|
self:StartBar(IceCastBar.Actions.Cast)
|
||||||
|
Reference in New Issue
Block a user