Skip to content

Commit

Permalink
And again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Oct 1, 2024
1 parent 9db7367 commit 38f67f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion TheWarWithin/DeathKnightUnholy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,6 @@ me:RegisterAbilities( {
startsCombat = false,

toggle = "cooldowns",

debuff = "festering_wound",

handler = function ()
Expand Down
15 changes: 9 additions & 6 deletions TheWarWithin/PaladinRetribution.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1159,24 +1159,27 @@ spec:RegisterHook( "reset_precast", function ()
if free_hol_triggered + 12 < now then free_hol_triggered = 0 end -- Reset.

if IsSpellKnownOrOverridesKnown( 427453 ) then

if talent.lights_deliverance.enabled then
if query_time - free_hol_triggered < 12 and action.hammer_of_light.lastCast < free_hol_triggered then
if query_time - free_hol_triggered < 12 and action.hammer_of_light.lastCast > action.wake_of_ashes.lastCast then
local hol_remains = free_hol_triggered + 12 - query_time
hol_remains = hol_remains > 0 and hol_remains or ( 2 * gcd.max )

applyBuff( "hammer_of_light_free", max( 2 * gcd.max, hol_remains ) )
if Hekili.ActiveDebug then Hekili:Debug( "Hammer of Light active; applied hammer_of_light_free: %.2f", buff.hammer_of_light_free.remains ) end
else
-- Don't trust that HoL is still active.
if Hekili.ActiveDebug then Hekili:Debug( "Hammer of Light appears active [ %.2f ] but we just cast HoL [ %.2f ]; ignoring...", free_hol_triggered ) end
end
else
end

if not buff.hammer_of_light_free.up then
local hol_remains = action.wake_of_ashes.lastCast + 12 - query_time
hol_remains = hol_remains > 0 and hol_remains or ( 2 * gcd.max )
applyBuff( "hammer_of_light_ready", hol_remains )
if Hekili.ActiveDebug then Hekili:Debug( "Hammer of Light not active; applied hammer_of_light_ready: %.2f", buff.hammer_of_light_ready.remains ) end
end

if buff.hammer_of_light_ready.down and buff.hammer_of_light_free.down then
if Hekili.ActiveDebug then Hekili:Debug( "Hammer of Light appears active [ %.2f ] but I don't know why; applying hammer_of_light_ready." ) end
applyBuff( "hammer_of_light_ready", 2 * gcd.max )
end
end

if time > 0 and talent.crusading_strikes.enabled then
Expand Down

0 comments on commit 38f67f1

Please sign in to comment.