Skip to content

Commit

Permalink
More babyproofing on default cast times.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Nov 13, 2023
1 parent ab8bae5 commit a879e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ function Hekili.Update( initial )

if state.delay > 0 then state.advance( state.delay ) end

local cast = ability.cast
local cast = ability.cast or 0

if ability.gcd ~= "off" and state.cooldown.global_cooldown.remains == 0 then
state.setCooldown( "global_cooldown", state.gcd.execute )
Expand All @@ -1870,7 +1870,7 @@ function Hekili.Update( initial )
state.removeBuff( "casting" )
end

if ability.cast > 0 then
if cast > 0 then
if not ability.channeled then
if debug then Hekili:Debug( "Queueing %s cast finish at %.2f [+%.2f] on %s.", action, state.query_time + cast, state.offset + cast, cast_target ) end

Expand Down

0 comments on commit a879e9a

Please sign in to comment.