Skip to content

Commit

Permalink
WarWithin/OperationFloodgate/Swampface: Add boss module (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Jan 9, 2025
1 parent 7eada17 commit 8ac522f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WarWithin/OperationFloodgate/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ BigWigs:AddColors("Demolition Duo", {
})

BigWigs:AddColors("Swampface", {
[469478] = "purple",
[473070] = "yellow",
[473114] = "orange",
})

BigWigs:AddColors("Geezle Gigazap", {
Expand Down
3 changes: 3 additions & 0 deletions WarWithin/OperationFloodgate/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ BigWigs:AddSounds("Demolition Duo", {
})

BigWigs:AddSounds("Swampface", {
[469478] = "alert",
[473070] = "long",
[473114] = "alarm",
})

BigWigs:AddSounds("Geezle Gigazap", {
Expand Down
29 changes: 29 additions & 0 deletions WarWithin/OperationFloodgate/Swampface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,44 @@ mod:SetRespawnTime(30)

function mod:GetOptions()
return {
-- TODO Razorchoke Vines (Mythic)
473070, -- Awaken the Swamp
473114, -- Mudslide
{469478, "TANK_HEALER"}, -- Sludge Claws
}
end

function mod:OnBossEnable()
-- TODO warmup?
self:Log("SPELL_CAST_START", "AwakenTheSwamp", 473070)
self:Log("SPELL_CAST_START", "Mudslide", 473114)
self:Log("SPELL_CAST_START", "SludgeClaws", 469478)
end

function mod:OnEngage()
self:CDBar(469478, 3.0) -- Sludge Claws
self:CDBar(473114, 9.0) -- Mudslide
self:CDBar(473070, 19.0) -- Awaken the Swamp
end

--------------------------------------------------------------------------------
-- Event Handlers
--

function mod:AwakenTheSwamp(args)
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 30.0)
self:PlaySound(args.spellId, "long")
end

function mod:Mudslide(args)
self:Message(args.spellId, "orange")
self:CDBar(args.spellId, 30.0)
self:PlaySound(args.spellId, "alarm")
end

function mod:SludgeClaws(args)
self:Message(args.spellId, "purple")
self:CDBar(args.spellId, 30.0)
self:PlaySound(args.spellId, "alert")
end

0 comments on commit 8ac522f

Please sign in to comment.