Skip to content

Commit

Permalink
skip castID check here for channels
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Nov 19, 2022
1 parent 28837bc commit d736497
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ClassicCastbars/ClassicCastbars_NonClassic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,11 @@ function addon:UNIT_SPELLCAST_SUCCEEDED(unitID, castID)
if not castbar then return end

if not castbar.isTesting then
if castbar._data then
if castbar._data.castID ~= castID then return end
castbar._data.isCastComplete = true
if castbar._data.isChanneled then return end -- _SUCCEEDED triggered every tick for channeled
local data = castbar._data
if data then
if not data.isChanneled and data.castID ~= castID then return end
data.isCastComplete = true
if data.isChanneled then return end -- _SUCCEEDED triggered every tick for channeled
end
self:HideCastbar(castbar, unitID)
end
Expand Down

0 comments on commit d736497

Please sign in to comment.