Skip to content

Commit

Permalink
WoD/TheEverbloom/Yalnu: Add Colossal Blow counter to bar (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Causese authored Oct 21, 2023
1 parent d97180f commit e3ec334
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions WoD/TheEverbloom/Yalnu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ end
function mod:OnEngage()
colossalBlowCount = 1
verdantEruptionCount = 1
self:CDBar(169179, 2.4) -- Colossal Blow
self:CDBar(169179, 2.4, CL.count:format(self:SpellName(169179), colossalBlowCount)) -- Colossal Blow
-- XXX bring this bar outside the if block when 10.2 is live everywhere
if isTenDotTwo then
self:CDBar(428823, 23.0, CL.count:format(self:SpellName(428823), verdantEruptionCount)) -- Verdant Eruption
Expand All @@ -126,13 +126,14 @@ end
-- Yalnu

function mod:ColossalBlow(args)
self:Message(args.spellId, "orange")
self:StopBar(CL.count:format(args.spellName, colossalBlowCount))
self:Message(args.spellId, "orange", CL.count:format(args.spellName, colossalBlowCount))
self:PlaySound(args.spellId, "alarm")
colossalBlowCount = colossalBlowCount + 1
if colossalBlowCount % 3 ~= 1 then -- 2, 3, 5, 6...
self:CDBar(args.spellId, 15.8)
self:CDBar(args.spellId, 15.8, CL.count:format(args.spellName, colossalBlowCount))
else -- 4, 7 ...
self:CDBar(args.spellId, 23.0)
self:CDBar(args.spellId, 23.0, CL.count:format(args.spellName, colossalBlowCount))
end
end

Expand Down

0 comments on commit e3ec334

Please sign in to comment.