Skip to content

Commit

Permalink
Dragonflight/DawnOfTheInfinite/ChronoLordDeios: Infinity Nova, timer …
Browse files Browse the repository at this point in the history
…improvements
  • Loading branch information
ntowle committed Oct 15, 2023
1 parent 370fe75 commit 83429be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 19 additions & 4 deletions Dragonflight/DawnOfTheInfinite/ChronoLordDeios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mod:SetStage(1)
local summonInfiniteKeeperCount = 1
local infinityOrbCount = 1
local temporalBreathCount = 1
local infiniteCorruptionCount = 1
local infiniteKeeperDeaths = 0

--------------------------------------------------------------------------------
Expand All @@ -30,6 +31,7 @@ function mod:GetOptions()
416152, -- Summon Infinite Keeper
{412027, "DISPEL"}, -- Chronal Burn
410904, -- Infinity Orb
{410908, "OFF"}, -- Infinity Nova
416139, -- Temporal Breath
-- Stage 2: Lord of the Infinite
416264, -- Infinite Corruption
Expand All @@ -46,7 +48,8 @@ function mod:OnBossEnable()
self:Death("InfiniteKeeperDeath", 205212)
self:Log("SPELL_AURA_APPLIED", "ChronalBurnApplied", 412027)
self:Log("SPELL_CAST_START", "InfinityOrb", 410904)
-- TODO Infinity Nova duration?
self:Log("SPELL_AURA_APPLIED", "InfinityNovaApplied", 410908)
self:Log("SPELL_AURA_APPLIED_DOSE", "InfinityNovaApplied", 410908)
self:Log("SPELL_CAST_START", "TemporalBreath", 416139)

-- Stage 2: Lord of the Infinite
Expand All @@ -57,6 +60,7 @@ function mod:OnEngage()
summonInfiniteKeeperCount = 1
infinityOrbCount = 1
temporalBreathCount = 1
infiniteCorruptionCount = 1
infiniteKeeperDeaths = 0
self:SetStage(1)
self:CDBar(410904, 9.6) -- Infinity Orb
Expand Down Expand Up @@ -107,11 +111,11 @@ function mod:InfinityOrb(args)
infinityOrbCount = infinityOrbCount + 1
if self:GetStage() == 1 then
-- pull:9.6, 17.0, 17.4, 17.4, 17.4, 24.0, 12.0, 12.0, 12.0...
if infinityOrbCount == 2 then
if infinityOrbCount == 2 then -- 2
self:CDBar(args.spellId, 17.0)
elseif infinityOrbCount < 6 then -- 3, 4, 5
self:CDBar(args.spellId, 17.4)
elseif infinityOrbCount == 6 then
elseif infinityOrbCount == 6 then -- 6
self:CDBar(args.spellId, 24.0)
else -- 7, 8, 9...
self:CDBar(args.spellId, 12.0)
Expand All @@ -121,8 +125,14 @@ function mod:InfinityOrb(args)
end
end

function mod:InfinityNovaApplied(args)
if self:Me(args.destGUID) then
self:Bar(args.spellId, 4, CL.on_group:format(args.spellName))
end
end

function mod:TemporalBreath(args)
self:Message(args.spellId, "orange")
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alarm")
temporalBreathCount = temporalBreathCount + 1
if self:GetStage() == 1 then
Expand All @@ -143,5 +153,10 @@ end
function mod:InfiniteCorruption(args)
self:Message(args.spellId, "red")
self:PlaySound(args.spellId, "long")
infiniteCorruptionCount = infiniteCorruptionCount + 1
self:CDBar(args.spellId, 24.6)
if infiniteCorruptionCount == 2 then
-- the first Infinite Corruption resets the CD of Infinity Orb
self:CDBar(410904, 19.2) -- Infinity Orb
end
end
2 changes: 1 addition & 1 deletion Dragonflight/DawnOfTheInfinite/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ BigWigs:AddColors("Time-Lost Battlefield", {
BigWigs:AddColors("The Infinite Dragonflight", {
[410904] = "yellow",
[412027] = {"blue","yellow"},
[416139] = "orange",
[416139] = "purple",
[416152] = "red",
[416264] = "red",
["stages"] = "cyan",
Expand Down

0 comments on commit 83429be

Please sign in to comment.