Skip to content

Commit

Permalink
Classic/Deadmines/Sneed: Add boss module (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Jan 9, 2025
1 parent f565981 commit 16bb0e8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Classic/Deadmines/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ BigWigs:AddColors("Rhahk'Zor", {
})

BigWigs:AddColors("Sneed", {
[5141] = "cyan",
[6713] = "purple",
[7399] = "yellow",
})

BigWigs:AddColors("Gilnid", {
Expand Down
3 changes: 3 additions & 0 deletions Classic/Deadmines/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ BigWigs:AddSounds("Rhahk'Zor", {
})

BigWigs:AddSounds("Sneed", {
[5141] = "long",
[6713] = "alert",
[7399] = "info",
})

BigWigs:AddSounds("Gilnid", {
Expand Down
43 changes: 33 additions & 10 deletions Classic/Deadmines/Sneed.lua
Original file line number Diff line number Diff line change
@@ -1,39 +1,62 @@
if BigWigsLoader.isRetail and select(4, GetBuildInfo()) < 110005 then return end -- XXX remove check when 11.0.5 is live
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Sneed", 36, 2626)
if not mod then return end
mod:RegisterEnableMob(643) -- Sneed
mod:RegisterEnableMob(
642, -- Sneed's Shredder
643 -- Sneed
)
mod:SetEncounterID(mod:Retail() and 2968 or 2742)
--mod:SetRespawnTime(0)
mod:SetStage(1)

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {

-- Sneed's Shredder
7399, -- Terrify
5141, -- Eject Sneed
-- Sneed
6713, -- Disarm
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
end
self:Log("SPELL_CAST_SUCCESS", "Terrify", 7399)
self:Log("SPELL_CAST_SUCCESS", "EjectSneed", 5141)
self:Log("SPELL_CAST_SUCCESS", "Disarm", 6713)
end

function mod:OnEngage()
self:SetStage(1)
self:CDBar(7399, 0.8) -- Terrify
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
end
function mod:Terrify(args)
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 10.9)
self:PlaySound(args.spellId, "info")
end

function mod:EjectSneed(args)
self:StopBar(7399) -- Terrify
self:SetStage(2)
self:Message(args.spellId, "cyan")
self:CDBar(6713, 4.0) -- Disarm
self:PlaySound(args.spellId, "long")
end

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

0 comments on commit 16bb0e8

Please sign in to comment.