Skip to content

Commit

Permalink
Possible fix for channeling blocking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Aug 16, 2024
1 parent c333b5b commit abae499
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ function Hekili.Update( initial )

if ( casting or channeling ) and not shouldBreak and not shouldCheck then
if debug then Hekili:Debug( 1, "Finishing queued event #%d ( %s of %s ) due at %.2f as player is casting and castable spells are not ready.\nCasting: %s, Channeling: %s, Break: %s, Check: %s", n, event.type, event.action, t, casting and "Yes" or "No", channeling and "Yes" or "No", shouldBreak and "Yes" or "No", shouldCheck and "Yes" or "No" ) end
if t > 0 then
if t >= 0 then
state.advance( t )

local resources
Expand Down
2 changes: 2 additions & 0 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ local GetSpellCooldown = function(spellID)
end
end

local GetSpellInfo = ns.GetUnpackedSpellInfo

local FindStringInInventoryItemTooltip = ns.FindStringInInventoryItemTooltip
local ResetDisabledGearAndSpells = ns.ResetDisabledGearAndSpells
local WipeCovenantCache = ns.WipeCovenantCache
Expand Down
8 changes: 4 additions & 4 deletions State.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6786,10 +6786,6 @@ end


function state.advance( time )
if time <= 0 then
return
end

if not state.resetting and not state.modified then
state.modified = true
end
Expand Down Expand Up @@ -6835,6 +6831,10 @@ function state.advance( time )
if eCount == 10 then break end
end

if time <= 0 then
return
end

for k in pairs( class.resources ) do
local resource = state[ k ]

Expand Down

0 comments on commit abae499

Please sign in to comment.