Skip to content

Commit

Permalink
fix finish flash not always displaying for channeled casts
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Feb 14, 2024
1 parent afb9706 commit 492e13a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ClassicCastbars/ClassicCastbars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ function ClassicCastbars:UNIT_SPELLCAST_FAILED(unitID, castID)

if not castbar.isTesting then
if castbar.isActiveCast then
if not castbar.isChanneled and castbar.castID ~= castID then return end -- required for player
if not castbar.isChanneled and castbar.castID ~= castID then return end -- required for playe
if castbar.isChanneled and castID ~= nil then return end
if not castbar.isInterrupted then
castbar.isFailed = true
end
Expand All @@ -404,6 +405,7 @@ function ClassicCastbars:UNIT_SPELLCAST_CHANNEL_STOP(unitID)
if not castbar then return end

if not castbar.isTesting then
castbar.isCastComplete = true
self:HideCastbar(castbar, unitID)
end

Expand Down

0 comments on commit 492e13a

Please sign in to comment.