Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 0b83486

Browse files
committed
more small changes to cast bar
1 parent 7cd15ab commit 0b83486

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Objects/STATUSBTN.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ function STATUSBTN:CastBar_OnEvent(event, ...)
940940

941941
-- do nothing (when Tranquility is channeling if reports UNIT_SPELLCAST_SUCCEEDED many times during the duration)
942942

943-
elseif ((event == "UNIT_SPELLCAST_FAILED" or event == "UNIT_SPELLCAST_INTERRUPTED" or event == "UNIT_SPELLCAST_STOP") and self.sb.castID == eventCastID) or event == "UNIT_SPELLCAST_CHANNEL_STOP" then
943+
elseif ((event == "UNIT_SPELLCAST_FAILED" or event == "UNIT_SPELLCAST_INTERRUPTED") and self.sb.castID == eventCastID) or event == "UNIT_SPELLCAST_CHANNEL_STOP" then
944944

945945
if (self.sb:IsShown() and (self.sb.casting or self.sb.channeling) and not self.sb.fadeOut) then
946946

@@ -1025,8 +1025,6 @@ function STATUSBTN:CastBar_OnEvent(event, ...)
10251025

10261026
self.sb.shield:Show()
10271027

1028-
else
1029-
self:CastBar_Reset()
10301028
end
10311029

10321030
self.sb.cText:SetText(self.sb.cFunc(self.sb))
@@ -1860,7 +1858,6 @@ function STATUSBTN:SetType()
18601858

18611859
self:RegisterEvent("UNIT_SPELLCAST_START", "CastBar_OnEvent")
18621860
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED", "CastBar_OnEvent")
1863-
self:RegisterEvent("UNIT_SPELLCAST_STOP", "CastBar_OnEvent")
18641861
self:RegisterEvent("UNIT_SPELLCAST_FAILED", "CastBar_OnEvent")
18651862
self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED", "CastBar_OnEvent")
18661863
self:RegisterEvent("UNIT_SPELLCAST_DELAYED", "CastBar_OnEvent")

0 commit comments

Comments
 (0)