Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic/Deadmines/Sneed: Add boss module #1234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Classic/Deadmines/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,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 @@ -3,6 +3,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