Skip to content

Commit

Permalink
Aberrus/EchoOfNeltharion: Show message for 6th Volcanic Heart, fix bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Jun 27, 2023
1 parent 4ab4a62 commit 765b01c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Aberrus/EchoOfNeltharion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,15 @@ do
local timer = {21.4, 15.6, 17.0, 17.0, 17.4, 16.6, 19.5, 14.5, 0} -- Stage 2
local timerLFR = {27.9, 16.1, 17.0} -- 27.9, 16.1, 17.0, 17.0, 12.0, 17.0, 12.0 ..

local SKIP_CAST_THRESHOLD = 2
local SKIP_CAST_THRESHOLD = 1 -- pretty much no variance, but leave some buffer
local function checkCast(castCount)
if castCount == volcanicHeartCount then -- not on the next cast?
local msg = CL.count:format(CL.bombs, volcanicHeartCount)
mod:StopBar(msg)
mod:Message(410953, "orange", msg)
volcanicHeartCount = volcanicHeartCount + 1
local cd = timer[volcanicHeartCount]
mod:Bar(410953, cd - SKIP_CAST_THRESHOLD, CL.count:format(CL.bombs, volcanicHeartCount))
mod:CDBar(410953, cd - SKIP_CAST_THRESHOLD, CL.count:format(CL.bombs, volcanicHeartCount))
end
end

Expand Down

0 comments on commit 765b01c

Please sign in to comment.