Skip to content

Commit

Permalink
Firelands/Alysrazor: Fix Firestorm bar (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
stako authored Dec 18, 2024
1 parent 593a905 commit 3ea0512
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Firelands/Alysrazor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ function mod:OnBossEnable()
-- Heroic only
self:Log("SPELL_CAST_START", "Meteor", 100761, 102111)
self:Log("SPELL_CAST_START", "Firestorm", 100744)
self:Log("SPELL_AURA_REMOVED", "FirestormOver", 100744)

self:RegisterEvent("CHAT_MSG_MONSTER_YELL", "Initiates")
self:RegisterUnitEvent("UNIT_SPELLCAST_CHANNEL_STOP", "FirestormOver", "boss1")
end

function mod:OnEngage()
Expand All @@ -109,7 +109,7 @@ function mod:OnEngage()
initiateTimes = {22, 63, 21, 21, 40}
self:MessageOld(99816, "yellow", nil, L["engage_message"]:format(4), "inv_misc_pheonixpet_01")
self:Bar(99816, 250, L["stage_message"]:format(2))
self:Bar(100744, 95) -- Firestorm
self:CDBar(100744, 95) -- Firestorm
self:CDBar("meteor", 30, L["meteor"], 100761)
self:Bar("eggs", 42, 58542, L["eggs_icon"]) -- Hatch Eggs
self:DelayedMessage("eggs", 41.5, "green", 58542, L["eggs_icon"]) -- Hatch Eggs
Expand Down Expand Up @@ -213,13 +213,16 @@ end
function mod:Firestorm(args)
self:Flash(args.spellId)
self:MessageOld(args.spellId, "orange", "alert")
self:StopBar(args.spellId)
self:Bar(args.spellId, 10, CL["cast"]:format(args.spellName))
end

function mod:FirestormOver(args)
function mod:FirestormOver(_, _, _, spellId)
if spellId ~= 100744 then return end

-- Only show a bar for next if we have seen less than 3 meteors
if meteorCount < 3 then
self:CDBar(args.spellId, 72)
self:CDBar(100744, 72) -- Firestorm
end
self:Bar("meteor", meteorCount == 2 and 11.5 or 21.5, L["meteor"], 100761)
self:Bar("eggs", 22.5, 58542, L["eggs_icon"]) -- Hatch Eggs
Expand Down Expand Up @@ -279,7 +282,7 @@ do
if self:Heroic() then
meteorCount = 0
self:Bar("meteor", 19, L["meteor"], 100761)
self:Bar(100744, 72) -- Firestorm
self:CDBar(100744, 72) -- Firestorm
self:Bar(99816, 225, L["stage_message"]:format(2)) -- Just adding 60s like OnEngage
self:Bar("eggs", 30, 58542, L["eggs_icon"]) -- Hatch Eggs
self:DelayedMessage("eggs", 29.5, "green", 58542, L["eggs_icon"]) -- Hatch Eggs
Expand Down

0 comments on commit 3ea0512

Please sign in to comment.