Skip to content

Commit

Permalink
WarWithin/TheDawnbreaker/Shadowcrown: Collapsing Night under you
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Oct 14, 2024
1 parent c0f34f6 commit 0923180
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion WarWithin/TheDawnbreaker/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BigWigs:AddColors("Shadowcrown", {
[428086] = "red",
[445996] = "orange",
[451026] = "cyan",
[453140] = "orange",
[453140] = {"blue","orange"},
[453212] = "purple",
})

Expand Down
2 changes: 1 addition & 1 deletion WarWithin/TheDawnbreaker/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BigWigs:AddSounds("Shadowcrown", {
[428086] = "alert",
[445996] = "long",
[451026] = "warning",
[453140] = "long",
[453140] = {"long","underyou"},
[453212] = "alarm",
})

Expand Down
23 changes: 18 additions & 5 deletions WarWithin/TheDawnbreaker/Shadowcrown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ function mod:OnBossEnable()
-- Mythic
self:Log("SPELL_CAST_START", "ObsidianBeam", 453212)
self:Log("SPELL_CAST_START", "CollapsingNight", 453140)
self:Log("SPELL_PERIODIC_DAMAGE", "CollapsingNightDamage", 453173)
self:Log("SPELL_PERIODIC_MISSED", "CollapsingNightDamage", 453173)
end

function mod:OnEngage()
Expand Down Expand Up @@ -98,8 +100,8 @@ function mod:DarknessComes(args)
end
end
self:Message(args.spellId, "cyan", CL.percent:format(percent, args.spellName))
self:PlaySound(args.spellId, "warning")
self:CastBar(args.spellId, 15)
self:PlaySound(args.spellId, "warning")
end

function mod:BurningShadows()
Expand All @@ -126,26 +128,37 @@ end

function mod:ObsidianBlast(args)
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alarm")
self:CDBar(args.spellId, 13.3)
self:PlaySound(args.spellId, "alarm")
end

function mod:CollapsingDarkness(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "long")
self:CDBar(args.spellId, 15.7)
self:PlaySound(args.spellId, "long")
end

-- Mythic

function mod:ObsidianBeam(args)
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alarm")
self:CDBar(args.spellId, 24.3)
self:PlaySound(args.spellId, "alarm")
end

function mod:CollapsingNight(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "long")
self:CDBar(args.spellId, 24.8)
self:PlaySound(args.spellId, "long")
end

do
local prev = 0
function mod:CollapsingNightDamage(args)
if self:Me(args.destGUID) and args.time - prev > 1.25 then
prev = args.time
self:PersonalMessage(453140, "underyou")
self:PlaySound(453140, "underyou")
end
end
end

0 comments on commit 0923180

Please sign in to comment.